Conjugation and transduction are both methods of gene transfer in bacteria but they occur in different ways. Conjugation involves direct cell-to-cell contact and the transfer of DNA through a sex pilus. Transduction, on the other hand, involves the transfer of DNA from one bacterium to another via a bacteriophage (a virus that infects bacteria).