Bacterial cells have several structures that carry out important functions. These include a cell wall and cell membrane that provide shape and protection. Flagella and pili help with locomotion and adhesion. The cytoplasm contains ribosomes for protein synthesis and DNA in the nucleoid region. Some bacteria form spores as resistant structures during unfavorable conditions. Gram-positive and Gram-negative bacteria have differences in their cell wall and membrane compositions that affect staining and antibiotic susceptibility.