Antimicrobial resistance is particularly prevalent in gram-negative bacteria, as antibiotics that act inside the cells must overcome their outer membrane. So far, technical limitations have prevented us from determining how outer-membrane proteins and lipids are organized to form this functional barrier. Here, we use nanoscale imaging of live bacteria to reveal that the most abundant outer-membrane proteins form a network that spans the entire bacterial surface, leaving only small gaps of phase-separated lipopolysaccharide. This tendency to phase separate is further emphasized by the formation of new domains when phospholipids are mislocated at the surface, rendering cells more susceptible to some antibiotics. Overall, the phase-separated nature of the outer membrane defines a perspective on its integrity and barrier function