Pili are the filaments that help some bacteria stick to surfaces and exchange plasmids through conjugation.
Pili are hollow, hair like appendages that are found on the surface of some bacterial cells. Pili are composed of a special protein (known as pilin). Pilia act as a means of attachment of bacteria to surfaces (such as their host) and it is also used by bacteria to exchange their genetic material (plasmids) in the mating process between cells (known as conjugation).