Bacteria are considered prokaryotes. They have a cell wall made of peptidoglycan, composed of sugars and amino acids, and many have a polysaccharide capsule. This cell wall acts as an extra layer of protection, helping the cell maintain its shape, and prevents dehydration. The capsule allows the cell to attach to surfaces in its environment. Other prokaryotes have flagella, pili, or fimbriae. Flagella are used for locomotion, while most pili are used to exchange genetic material during a type of reproduction called conjugation.