How do bacteria exchange DNA?

Bacteria exchange DNA through conjugation, a microbiological process where a hollow pili bridge forms between two bacteria, so the genetic material can transfer from one bacterium to another. Pili are hair-like tentacles covering most bacteria that help them stick to surfaces and each other for conjugation.