Consider the evaluation map at a point evp : C∞(U) → ℝ. This is a ring homomorphism. Taking the kernel ker evp, and noting that ℝ is a field, we must have that ker evp is a maximal ideal.
It turns out every maximal ideal is of this form.
For any ideal I ⊲ R we look at the maximal ideals that contain it V(I) = {Mp ∈ Max(R) ∣ I ⊆ M}
This is the set of points on which all the functions in I are zero — it's the zero set of $I$.
We define the closed sets to be those of the form V(I). This gives us the spectral topology (also called the Hull-Kernel topology)