During lytic phage replication, packaging machinery occasionally encapsidates random fragments of bacterial chromosome instead of phage DNA. When such phage particles infect a recipient cell, the bacterial DNA is injected and can recombine into the recipient genome, transferring any bacterial genes—a process called generalized transduction.
From your study of the viral replication cycle, you know that lytic phages hijack the bacterial cell's machinery to replicate their own DNA and package it into new phage heads. From microbial genetics, you understand that bacteria can acquire new genes through horizontal gene transfer. Generalized transduction sits at the intersection of these two ideas: it is an accidental consequence of phage replication that becomes a powerful mechanism of bacterial gene transfer.
Here is what happens during normal lytic replication: the phage injects its DNA, takes over the host cell, replicates its genome many times, and then a packaging enzyme (often called the terminase) recognizes a specific sequence on the phage DNA, grabs it, and stuffs it into an empty protein shell (the capsid head). The enzyme measures out a "headful" of DNA and cuts it, then moves on to fill the next capsid. This process repeats until the cell lyses and releases dozens to hundreds of new phage particles.
The mistake that enables generalized transduction happens during this packaging step. As the phage degrades the host chromosome into fragments for recycling, the packaging machinery occasionally picks up a fragment of bacterial DNA instead of phage DNA. The terminase does not carefully verify that it is packaging the correct genome — it simply grabs DNA of roughly the right size and fills the head. The resulting particle, called a transducing particle, looks like a normal phage on the outside but carries bacterial genes instead of phage genes inside. Because the error is random — any fragment of the degraded bacterial chromosome can be accidentally packaged — any bacterial gene has a roughly equal probability of being transduced. This is why the process is called "generalized" transduction: it is not limited to specific genes.
When a transducing particle encounters a new bacterium, it attaches and injects the bacterial DNA just as it would inject phage DNA. But because the injected DNA is bacterial, not phage, no lytic cycle begins. Instead, the incoming DNA fragment can undergo homologous recombination with the recipient's chromosome if it carries sequences similar enough to pair with the recipient's genes. If recombination succeeds, the recipient bacterium has permanently acquired new genetic material — perhaps an antibiotic resistance gene, a metabolic capability, or a virulence factor — from the original host cell. The frequency is low (roughly 1 in every 10⁶ to 10⁸ phage particles is a transducing particle), but given the astronomical numbers of phage infections occurring constantly in nature, generalized transduction is a significant driver of bacterial evolution and diversity.