The production of gametes (sperm and eggs) occurs from germ cells through the process of meiosis.
Meiosis is a cell division phenomenon in which 4 haploid cells are obtained from 1 diploid cell.
And it is a key event because when the 2 gametes unite, a diploid cell is obtained again, which will give rise to a new individual.