We describe the prime ideals and, in particular, the maximal ideals in products R=∏Dλ of families (Dλ)λ∈Λ of commutative rings. We show that every maximal ideal is induced by an ultrafilter on the Boolean algebra ∏P(max(Dλ)), where max(Dλ) is the spectrum of maximal ideals of Dλ, and P denotes the power set. If every Dλ is in a certain class of rings including finite character domains and one-dimensional domains, we completely characterize the maximal ideals of R. If every Dλ is a Prüfer domain, we completely characterize all prime ideals of R.