Berberine, an isoquinoline alkaloid derived from many medicinal plants, has been extensively used to treat various gastrointestinal diseases. In the present study, we investigated whether berberine could ameliorate intestinal mucosal barrier damage induced by peritoneal air exposure for 3 h. Peritoneal air-exposure rats received 100, 150, and 200 mg/kg berberine orally via gavage four times before and after surgery. Blood and terminal ileum samples were collected 24 h after surgery. The serum D-lactate levels were determined using an enzyme-linked immunosorbent assay (ELISA) kit. Intestinal permeability was determined by measuring the intestinal clearance of fluorescein isothiocyanate (FITC)-dextran (FD4). Intestinal inflammation was assessed by measuring myeloperoxidase activity. Intestinal histopathology was also assessed. The results revealed that berberine decreased the serum D-lactate level, intestinal FD4 clearance, and myeloperoxidase activity. Edema and inflammation were reduced by berberine in the intestinal mucosa and submucosa, and the Chiu's scores, indices of intestinal mucosal injury, also decreased in the berberine-treated group. In addition, berberine exerted these protective effects in a dose-dependent manner, with a significant difference from the control group at doses of 150 and 200 mg/kg. The results suggest that berberine could ameliorate intestinal mucosal barrier damage induced by peritoneal air exposure, which is linked to its anti-inflammatory activity. Berberine may be a promising treatment for intestinal mucosal barrier damage in open abdominal surgery.