Type IV pili are hair-like appendages found on the surface of many bacteria that play crucial roles in adhesion, motility, and horizontal gene transfer. These pili are dynamic structures that can extend and retract, enabling bacteria to move on surfaces through a process called 'twitching motility'.