Genetic variation is produced within populations through mutations, sexual reproduction, and meiosis. Mutations introduce new alleles and variation when genes change through single-base mutations or chromosomal rearrangements. Sexual reproduction and meiosis increase variation by recombining alleles through crossing over during prophase I to form new combinations not seen in either parent. This genetic variation provides the raw material for natural selection to act upon.