Lipoteichoic acids (LTAs) are essential cell-wall components in Gram-positive bacteria, including the human pathogen Staphylococcus aureus, contributing to cell adhesion, cell division and antibiotic resistance. Genetic evidence has suggested that LtaA is the flippase that mediates the translocation of the lipid-linked disaccharide that anchors LTA to the cell membrane, a rate-limiting step in S. aureus LTA biogenesis. Here, we present the structure of LtaA, describe its flipping mechanism and show its functional relevance for S. aureus fitness. We demonstrate that LtaA is a proton-coupled antiporter flippase that contributes to S. aureus survival under physiological acidic conditions. Our results provide foundations for the development of new strategies to counteract S. aureus infections.