A classical manifold is a space that locally looks like $\mathbb{R}^n$; or, via results like the Whitney embedding theorem, a suitably nice subspace of some $\mathbb{R}^N$. If "looks like" involves some notion of smoothness, for example, then we can expand into differential geometry and talk about constructions like tangent spaces and differential forms. If we stick to just continuity, then we can still work with some constructions like homology and cohomology (just not, say, de Rham cohomology), and we can deal with more pathological spaces and functions between them.
A natural question to ask, then, is what's so special about $\mathbb{R}^n$? We can consider spaces that locally look like an arbitrary Banach space, for example. (I don't think this is a particularly popular approach, at least, at the undergrad/early grad school level, but Abraham, Marsden, and Ratiu works in this category.) The starting point of algebraic geometry is wanting to deal with spaces over an arbitrary commutative ring. It's not clear how continuity or smoothness should map over to this case, but at the very least polynomials make sense over an arbitrary ring, and we can look at the space like $V(f) = \{x\in k^n:\, f(x) = 0\}$ for a polynomial $f\in k[X_1, \dots, X_n]$. But that's not exactly what we want either; for the important case of $k$ finite, for example, $V(f)$ is just a finite collection of points.
The analogy that turns out to work is going in the opposite direction, and trying to generalize the idea of functions on a manifold. To that end, algebraic geometry works with locally ringed spaces, which are pairs $(X, \mathcal{O}_X)$ with $X$ a topological space and $\mathcal{O}_X$ a sheaf of rings on $X$ satisfying properties roughly analogous to what you'd expect for, say, smooth functions on a manifold. In rough terms, what you wind up with is a space that locally looks like the spectrum of a commutative ring--- but unlike the case of real manifolds, that ring can vary along the space. That's admittedly a vague analogy, and it takes a lot of technical results to even talk about the resulting object. But if you're familiar with vector bundles, for example, then consider Swan's Theorem: For a smooth, connected, closed manifold $X$, the sections functor $\Gamma(\cdot)$ gives an equivalence between vector bundles over $X$ and f.g., projective modules over the ring $C^\infty(X)$.
So, what makes this algebraic thing we've constructed look geometric? Smoothness doesn't make sense outside of $\mathbb{R}^n$, but if we're working with polynomials, they have a formal derivative that allows us to do roughly the same thing. More generally, a local ring $(R, \mathfrak{m})$ has a cotangent space $\mathfrak{m}/\mathfrak{m}^2$ that's roughly analogous to the cotangent space of a manifold; and with a bit of work, we can get something that at least has some of the formal properties one wants for a tangent or cotangent space. Even though the topology we're working with turns out to be much more complicated than the case of manifolds (the Zariski topology, for example, is generally non-Hausdorff), we still have a notion of cohomology (the simplest being Cech cohomology with a sheaf). There's a massive jump in abstraction and technical requirements compared with the more geometric case, but algebraic geometry turns out to be the right extension of more familiar geometry when dealing with things such as, say, number fields.