%0 Journal Article %T The genomic and cellular basis of biosynthetic innovation in rove beetles. %A Kitchen SA %A Naragon TH %A Brückner A %A Ladinsky MS %A Quinodoz SA %A Badroos JM %A Viliunas JW %A Kishi Y %A Wagner JM %A Miller DR %A Yousefelahiyeh M %A Antoshechkin IA %A Eldredge KT %A Pirro S %A Guttman M %A Davis SR %A Aardema ML %A Parker J %J Cell %V 187 %N 14 %D 2024 Jul 11 %M 38889727 %F 66.85 %R 10.1016/j.cell.2024.05.012 %X How evolution at the cellular level potentiates macroevolutionary change is central to understanding biological diversification. The >66,000 rove beetle species (Staphylinidae) form the largest metazoan family. Combining genomic and cell type transcriptomic insights spanning the largest clade, Aleocharinae, we retrace evolution of two cell types comprising a defensive gland-a putative catalyst behind staphylinid megadiversity. We identify molecular evolutionary steps leading to benzoquinone production by one cell type via a mechanism convergent with plant toxin release systems, and synthesis by the second cell type of a solvent that weaponizes the total secretion. This cooperative system has been conserved since the Early Cretaceous as Aleocharinae radiated into tens of thousands of lineages. Reprogramming each cell type yielded biochemical novelties enabling ecological specialization-most dramatically in symbionts that infiltrate social insect colonies via host-manipulating secretions. Our findings uncover cell type evolutionary processes underlying the origin and evolvability of a beetle chemical innovation.