Pauli exclusion principle
The Pauli exclusion principle states that no two identical fermions can occupy the same quantum state at the same time. For electrons in an atom, this means that no two of them can share the same complete set of quantum numbers; each electron must differ from every other in at least one — its energy level, its orbital shape, its orientation, or its spin direction. Wolfgang Pauli proposed the rule in 1925 to explain the structure of atomic spectra.
Although often stated as a simple ban, the principle is really a consequence of the antisymmetry of the fermion wavefunction. When two fermions are placed in the same state, swapping them must flip the wavefunction's sign, yet swapping identical things in the same state should change nothing — and the only number that equals its own negative is zero. So the wavefunction for that forbidden arrangement vanishes everywhere, which is the theory's way of saying it never happens.
The reach of this single rule is hard to overstate. It is why electrons stack into shells instead of all collapsing into the lowest level, and therefore why each element has its own chemistry and why the periodic table has the shape it does. It is why solid objects resist being squeezed into nothing, why metals conduct as they do, and why dying stars can hold themselves up against gravity. The orderly variety of the material world rests on this prohibition.
Antisymmetry forces the wavefunction to vanish if two fermions share a state — so they never do.
Two electrons can share the same orbital because spin gives them a fourth quantum number; one points up, the other down. They are still in different overall states, so the principle is honoured, not broken.