The pathological changes in inflammatory bowel disease (IBD) include the disruption of intestinal barrier function and the infiltration of pathogenic microbes. The application of an artificial protective barrier at the site of inflammation can prevent bacterial infiltration, promote epithelial cell migration, and accelerate wound healing. In this study, dopamine-modified hyaluronic acid (HA-DA) was developed as a bioadhesive self-cross-linkable hydrogel, which acted as an enteroprotective agent to promote the healing of inflamed intestinal tissue. The adhesion strength HA-DA to mouse colon was 3.81-fold higher than HA. Moreover, HA-DA promoted Caco-2 cell proliferation and migration as well as had a strong physical barrier effect after gelation. After oral administration, the HA-DA reduced weight loss and attenuated impaired goblet cell function in mice with dextran sodium sulfate-induced IBD. In addition, HA-DA promoted restoration of the epithelial barrier by the upregulation of tight junction proteins. The results reported herein substantiated that self-cross-linkable hydrogel-based enteroprotective agents are a promising approach for the treatment of IBD.