Bacteria typically have one of two types of cell walls: gram-positive or gram-negative. Gram-positive cell walls are thick and composed primarily of peptidoglycan and teichoic acid. Gram-negative cell walls are more complex, containing a thin peptidoglycan layer and an outer membrane with lipopolysaccharides. Both wall types contain the polysaccharide peptidoglycan, which provides structure and protection to the cell. The cell wall allows nutrient transport while protecting the cell from environmental threats.