Tao Li et al. report crystal structure of MucA-MucB complex and identify a cavity region of MucB that binds PEG molecule. They further show that this hydrophobic cavity of MucB is a primary site for sensing lipid molecules and that lipid A stimulates MucB to release MucA for AlgW cleavage, helping to understand the regulation mechanism of alginate biosynthesis.