HGT can occur through several mechanisms, namely transformation, transduction, and conjugation. In transformation, bacteria uptake naked DNA fragments from their environment. Transduction involves the transfer of DNA from one bacterium to another via bacteriophages. Conjugation is a process where genetic material is transferred between bacteria through direct contact, often mediated by plasmids.