You can even look at the space of prime ideals of a ring, the spectra. If you glue several of them together, you get schemes, and then there's this totally
GAGA theorem that says that this is the same as complex analysis if you do it with rings over $\mathbb{C}$.