Given any function $f:X \to Y$ and any topology $\tau_Y$ on $Y$, there is an induced topology $\tau_X$ on $X$ (called the initial topology) whose open sets are the inverse images of the open sets in $\tau_Y$ under $f$.
Now, the inverse image of a union is the union of the inverse images. But given a family of sets $(U_i)_{i \in I}$ in $\tau_X$, it seems that one needs to use the axiom of choice to choose for each $U_i$ an open set $V_i \in \tau_Y$ for which $f^{-1}(V_i)=U_i$. Once that is done, one could then show that the union of the $U_i$s is also in $\tau_X$.
But is the axiom of choice really needed?
I think that the answer is no, since if one does not know how to choose a $V_i$, then one could simply take the union of all the open sets in $\tau_Y$ that would work for $V_i$.