The cell wall of Staphylococcus aureus is characterized by an extremely high degree of cross-linking within its peptidoglycan (PGN). Penicillin-binding protein 4 (PBP4) is required for the synthesis of this highly cross-linked peptidoglycan. We found that wall teichoic acids, glycopolymers attached to the peptidoglycan and important for virulence in Gram-positive bacteria, act as temporal and spatial regulators of PGN metabolism, controlling the level of cross-linking by regulating PBP4 localization. PBP4 normally localizes at the division septum, but in the absence of wall teichoic acids synthesis, it becomes dispersed throughout the entire cell membrane and is unable to function normally. As a consequence, the peptidoglycan of TagO null mutants, impaired in wall teichoic acid biosynthesis, has a decreased degree of cross-linking, which renders it more susceptible to the action of lysozyme, an enzyme produced by different host organisms as an initial defense against bacterial infection.