Our results proved that XYC exerted favorable effect on epilepsy by modulating the gut microbiota and serum lipid metabolic, especially neuroinflammation and glycerophospholipid metabolism by regulating the AKT1, INS and IL-6 expression levels. Here, IL6 is linked to epilepsy.