Flavin-containing monooxygenases (FMOs) are ubiquitous in all domains of life and metabolize a myriad of xenobiotics, including toxins, pesticides and drugs. However, despite their pharmacological importance, structural information remains bereft. To further our understanding behind their biochemistry and diversity, we used ancestral-sequence reconstruction, kinetic and crystallographic techniques to scrutinize three ancient mammalian FMOs: AncFMO2, AncFMO3-6 and AncFMO5. Remarkably, all AncFMOs could be crystallized and were structurally resolved between 2.7- and 3.2-Å resolution. These crystal structures depict the unprecedented topology of mammalian FMOs. Each employs extensive membrane-binding features and intricate substrate-profiling ...