Gametes need half the usual number of chromosomes. That way egg + sperm make a full set. Meiosis does this in two divisions. It also shuffles the genes along the way. Step through it.
Starting cell
Meiosisone cell → four gametes
The steps
📷 Reference image
A real labeled figure to compare with the interactive above.
Meiosis — Laboratoires Servier, CC BY-SA 3.0 (via Wikimedia Commons)