Structural analysis of the α-glucosidase HaG provides new insights into substrate specificity and catalytic mechanism.