In meiosis , which is required in sexual reproduction , one diploid cell (having two instances of each chromosome, one from each parent) undergoes recombination of each pair of parental chromosomes, and then two stages of cell division, resulting in four haploid cells ( gametes ).