The structure of the S127P mutant of cytochrome b5 reductase that causes methemoglobinemia shows the AMP moiety of the flavin occupying the substrate binding site.