Proposition: In a ring $R\ni 1_R$ every proper ideal is contained in a maximal ideal.
The proof uses Zorn's Lemma.
Notation: $I\triangleleft R$ means that $I$ is and ideal of $R$
Proof:
Let $I\triangleleft R$, $I\subsetneq R$ be a proper ideal of $R$. We define $S:=\{J\triangleleft R\ :\ I\subseteq J\subsetneq R\}$ and consider the poset $(S,\subseteq)$. $S\ne\emptyset$ since $I\in S$. The conditions for Zorn's lemma are satisfied here because if $C$ is a chain of $S$, the union $\bigcup\limits_{J\in C}J$ is an ideal and an upper bound. (This is the part I'm confused about)
By the lemma $\exists M\in S$ a maximal element. Let's show that $M$ is a maximal ideal:
Let $N\subsetneq R$ be an ideal that contains $M$. Since it contains $M$ it also contains $I$ so we have $N\in S$.
But $M$ is a maximal element of $S$ so $N=M\ \square$
I get that the union $\bigcup\limits_{J\in C}J$ is an ideal because it the union of increasing nested sets, so the last one is an ideal (provided that it's a finite union). But what if it is an infinite or even uncountable union. Is it still true in that case that the union of nested ideals is an ideal? If it is not an ideal then it is not an upper bound of the chain and we cannot apply the lemma...