Cryo-EM reveals the structure of the IgA1 metalloprotease (IgA1P) from the pathogen, G. haemolysans in the absence and presence of IgA substrate, which suggests a conserved gating mechanism for IgA1P enzymes and provides a basis for therapeutic strategies.