A pilus is a hair-like appendage found on the surface of many bacteria, playing a crucial role in adhesion, motility, and DNA transfer between cells. Pili are essential for bacterial conjugation, a process that facilitates genetic diversity and the spread of antibiotic resistance genes.