The process in cell division in sexually reproducing organisms that reduces the number of chromosomes from diploid to haploid (half the original number). Meiosis involves two consecutive divisions of the nucleus and leads to the production of reproductive cells (gametes) in animals and to the formation of spores in plants, fungi, and most algae (the haploid spores grow into organisms that produce gametes by mitosis).