Bacteriophages are viruses that infect and replicate within bacteria, featuring a structure that includes a head, tail, base plate, and tail fibers for attachment. They can undergo two life cycles: the lytic cycle, which involves rapid replication and lysis of the host cell, and the lysogenic cycle, where phage DNA integrates into the bacterial genome and replicates with it, causing no immediate harm. Under stress, the lysogenic cycle can shift to the lytic cycle.