Pilus or pili are surface structures of the bacteria but do not play a role in motility. The pili are elongated tubular structures made up of a special protein. In some bacteria, they are known to help attach the bacteria to rocks in streams and also to the host tissues.