Most infectious, allergic and inflammatory diseases in humans involve mucosal surfaces, including the gastrointestinal, reproductive and respiratory tracts. To maintain health, the mucosal immune system must provide protection against pathogens while being tolerant of commensal bacteria and harmless antigens. This Focus highlights the latest advances in our understanding of host-microbe interactions at mucosal sites and the consequences of immune dysregulation at these sites.