Genetic algorithms are search and optimization techniques inspired by evolutionary biology. They work by generating an initial population of potential solutions, then selecting and recombining the fittest individuals to produce a new generation, with occasional random mutations. The fitness of each individual is evaluated using a fitness function, and the process repeats until a termination condition is reached. Genetic algorithms have been applied to problems in many domains due to their ability to efficiently explore large search spaces.