This study aimed to investigate the therapeutic effect of berberine on renal ischemia-reperfusion injury in rats and its effect on Bax and Bcl-2. Sixty adult SD rats were randomly divided into four groups: control group A, renal ischemia-reperfusion group B, berberine group C and berberine + exendin-(9–39) treatment group D. In group A, right kidney was resected and left renal pedicle was separated, but left renal artery was not blocked. Renal ischemia-reperfusion model was established in other groups. Rats in group C were not subjected to any treatment after model construction. Rats in group C and D were subjected to intraperitoneal injection of berberine 7 days before the experiment. Besides that, intraperitoneal injection of exendin-(9–39) was performed at day 1 and 4 after model construction. Automatic biochemical analyzer was used to measure serum creatinine (SCr) and blood urea nitrogen (BUN). Malondialdehyde (MDA) in renal cortex was measured by enzyme-linked immunosorbent assay and contents of Bax and Bcl-2 in renal tissue were measured by western blot analysis. Apoptosis of rat renal cells was detected by TUNEL assay. The results showed that levels of SCr, BUN, MDA and Bax were significantly higher in group B than in other groups (P<0.05). Levels of Bcl-2 in group B were significantly higher than those in group A but significantly lower than those in group C and D. Compared with group A, apoptosis of renal cells was more severe in group B. Compared with group B, apoptosis of renal cells was significantly improved in group C and D, but was still more severe than that in group A. In conclusion, berberine can effectively improve renal function in rats with renal ischemia-reperfusion injury by inhibiting Bax expression and promoting Bcl-2 expression.