Let $K$ be a number field with $[K:Q] =n$. Let $O_k$ be its ring of algebraic integers.
I understand how there is an integral basis for $Q$, i.e. $\exists$ a $Q$-basis of $K$ consisting of elements of $O_k$. Let this integral basis be denoted by $\omega_1, \omega_2, \dots, \omega_n \in O_k$.
However, I do not understand how this leads to the fact that
$$\bigoplus_{i=1}^n Z\omega_i \subseteq O_k$$
Could someone elaborate please? Thank you.