PR39 is an antimicrobial peptide (AMP) with a variety of biological functions, including antimicrobial, wound healing, leukocyte chemotaxis, angiogenesis, and immunomodulation; however, its therapeutic efficacy in colitis (IBD) has rarely been reported. For this reason, the present study aimed to investigate the therapeutic effect of PR39 on IBD and its underlying mechanisms. In this experiment, a mouse model of ulcerative colitis (UC) was induced with 3 % dextran sulfate (DSS) and administered by rectal injection of PR39. The results of the study showed that 5 mg/kg of PR39 was able to ameliorate the clinical manifestations of DSS-induced UC mice by improving the clinical symptoms, colonic tissue damage, up-regulating the expression of tight junction proteins, and alleviating the systemic inflammation in mice in various ways. The mechanism of action may involve inhibition of the phosphorylation level of proteins related to the NF-κB/MAPK signaling pathway and modulation of the relative abundance of potentially pathogenic (Bacteroides, Pseudoflavonifractor, Barnesiella, and Oscillibacter) and potentially beneficial bacteria (Candidatus_Saccharibacteria, Desulfovibrio, Saccharibacteria) in the intestinal flora. The results enriched the biological functions of PR-39 and also suggested that PR-39 may be able to be used as a novel drug for the treatment of IBD.