Fermented foods have shown promise in preventing or treating ulcerative colitis (UC) via regulating intestinal flora and correcting metabolic disorders. However, the prevention effect of fermented Wallace melon juice (FMJ) on UC is unclear. In this study, the effects of FMJ on dextran sodium sulfate (DSS)‐induced UC were investigated via 16S rRNA sequencing and non‐targeted metabolomics. The results showed that FMJ was effective in alleviating the symptoms of UC, reducing histological damage and oxidative stress, decreasing the levels of pro‐inflammatory cytokines. After FMJ treatment, the level of propionic acid, butyric acid, and valeric acid increased by 14.1%, 44.4%, and 52.4% compared to DSS‐induced UC mice. Meanwhile, the levels of harmful bacteria such as Oscillospira, Bacteroidetes, and Erysipelotrichaceae and Clostridium decreased, while the levels of beneficial bacteria such as Akkermansia, Lactobacillus, and Bifidobacterium increased. Fecal metabolomics analysis identified 31 differential metabolites, which could regulate metabolic disorders in UC mice by controlling the primary bile acid biosynthesis, purine metabolism, and pantothenate and CoA biosynthesis pathway. Additionally, the abundances of butyric acid, bile acids, and pantothenic acid were positively correlated with Allobaculum, Bifidobacterium, and other beneficial bacteria (R2 > 0.80, p < 0.01). The results indicated that FMJ played a role in regulating the structure of intestinal flora, which in turn helped in repairing metabolic disorders and alleviated colitis inflammation.