This process occurs in three main ways: Transformation, the uptake of exogenous DNA from the surrounding environment. Transduction, the virus-mediated transfer of DNA between bacteria. Conjugation, the transfer of DNA from one bacterium to another via cell-to-cell contact.