Pili are hair-like appendages found on the surface of many bacteria, playing a crucial role in adhesion to surfaces and in the exchange of genetic material during conjugation. They are essential for bacterial colonization and horizontal gene transfer, impacting both bacterial evolution and pathogenicity.