The bacterial cell wall lies outside the cell membrane and provides several key functions for the cell. In gram-positive bacteria, the cell wall is thick and largely composed of peptidoglycan, while in gram-negative bacteria it is thinner with an additional outer membrane. Peptidoglycan is a polymer mesh made of sugars and amino acids that maintains cell shape and integrity. The structures and components of the cell wall help determine how the cell will interact with its environment and respond to antibiotics.