Further knockout of Asmt did not affect serum melatonin levels, but led to anxiety- and depression-like behaviors and a structural modulation of gut microbiota in females. Here, ASMT is linked to major depressive disorder.