ABSTRACT Objectives Depression is a widely prevalent mental disorder, and nutritional interventions play an increasingly important role in its treatment. In this paper, effects of linoleic acid (LA) on depressive behavior in mice induced by gut microbiome disorders were investigated. Methods Fifty C57BL/6J male mice were randomly separated into five groups, control group (CK), ceftriaxone sodium group (CRO), low-dose linoleic acid group (LLA, 1 g/kg), medium-dose linoleic acid group (MLA, 2 g/kg), and high-dose linoleic acid group (HLA, 5 g/kg). In the LLA, MLA, and HLA groups, mice were treated with ceftriaxone sodium (CRO) to induce depressive behaviors, followed by LA administration. Behavioral tests were used to evaluate depressive behavior. High-throughput sequencing and Hematoxylin–eosin (H&E) staining in gut microenvironment were carried out. ELISA kits were used to measure brain inflammatory factors, and 5-hydroxy-tryptamine (5-HT). Gas chromatography and western blot were used to determine fatty acids compositions and the enzymes expression involved in lipid metabolism in brain respectively. Results The results showed that 10 weeks CRO treatment contribute to depressive behavior, gut microbiome disturbance, and serotonin system disturbance. LLA and MLA improved the depressive-like behavior, and significantly increased the levels of 5-HT1A, 5-HTT and 5-HT in the hippocampus. LLA was found to improve the diversity of gut microbiome and alleviate colon tissue damage. Meantime, LLA increased the content of linoleic acid, improved the expression of FADS2 and COX-2, increased IL-10 levels, and decreased IL-6 levels in the brain. Discussion LA alleviated depressive behavior in mice by improving the gut microenvironment, regulate fatty acid metabolism, and modulate inflammation.