During the life cycle of most animals, some diploid cells undergo meiosis and haploid form in a process called gametogenesis.
Spermatogenesis:
In the testes of the male, the type of gametogenenesis is that produce sperm called spermatogenesis.
Oogenesis:
In the ovaries of Female the production of ova (egg) is called Oogenesis.