A bacteriophage is a virus that infects and replicates within bacteria. It injects its genetic material into a bacterial cell, taking over the cell's machinery to produce more virus particles. Bacteriophages are being studied for their potential use in treating bacterial infections as an alternative to antibiotics.