The rigid outer layer of bacterial membranes, generally containing peptidoglycans. It provides osmotic protection & determines bacterial shape & staining properties.