Genetics in bacteria can involve two types of gene transfer: vertical and horizontal. Vertical gene transfer occurs between generations through inheritance from parent to offspring cells. Horizontal gene transfer occurs between cells of the same generation through three main processes: transformation, transduction, and conjugation. Transformation involves uptake of naked DNA from the environment. Transduction involves transfer of bacterial DNA between cells by bacteriophages. Conjugation involves direct transfer of DNA through cell-to-cell contact via conjugation pili.