Transduction is a mode of genetic transfer between bacteria mediated by bacteriophages. During viral replication, fragments of bacterial DNA can become packaged within viral particles. These particles may then infect other bacteria and insert the donor DNA into the recipient genome. There are two types of transduction - generalized, where any bacterial DNA fragment can be transferred, and specialized, where only DNA near the site of viral integration is transferred. Cotransduction frequencies can also be used to map the relative locations of bacterial genes, as genes closer together are more likely to be cotransferred within the same viral particle. Transduction is useful for genetic engineering and mapping bacterial chromosomes.