The process by which cells divide to produce gametes (sex cells) with half the number of chromosomes.