We study the molecular mechanisms of natural (V(D)J recombination and somatic hypermutation) and artificial (the CRISPR/Cas technology) gene editing, with an emphasis on the involvement of DNA repair pathways and new biotechnological applications.