Bacteria are prokaryotic cells. Simple in structure, they may have both pili and flagella. The flagella are used for movement, but the pili have many functions: adhesion, reproduction, and movement as well. The flagella and pili are similar in that they are both composed of