The anti-inflammatory properties of silkworm pupa peptide (SPP) have been recognized for their potential benefits in colitis treatment. However, the underlying mechanism of SPP in colitis animal models remains unclear. The objective of our work was to investigate the improving effect and the mechanism of action of SPP on a mouse model of dextrose sodium sulfate (DSS)-induced colitis. The findings suggested that SPP effectively eased ulcerative colitis (UC) symptoms in mice by decreasing disease activity index, ameliorating histopathological injury, and decreasing serum and colonic markers of inflammation. In addition, our research findings demonstrated that SPP restored intestinal barrier function by increasing the production of tight junction proteins such as zonula occludens-1 (ZO-1), claudin-1, claudin-3, occludin, and adherens junction protein E-cadherin1. Further, SPP supplementation enhanced the concentration of short-chain fatty acids and positively altered the makeup of the gut bacteria in the mice's gut. These findings underscore SPP's ability to slow the progression of colitis and point to its possible use as a functional component in dietary supplements for the prevention of early-stage colitis.