Type IV pili, essential for many pathogens to cause disease, are hair-like appendages that grow out of and are retracted back into bacteria cells, enabling them to move and adhere to surfaces.