Long‑term and advanced cirrhosis is usually irreversible and often coincides with variceal hemorrhage or development of hepatocellular carcinoma; therefore, liver cirrhosis is a major cause of morbidity and mortality globally. The aim of the present study was to investigate the specific mechanism behind the formation of fibrosis or cirrhosis using rat models of hepatic fibrosis. The cirrhosis model was established by intraperitoneally administering dimethylnitrosamine to the rats. Hematoxylin and eosin staining was performed on the hepatic tissues of the rats to observe the fibrosis or cirrhosis, and western blot analysis was employed to detect α‑smooth muscle actin and desmin protein expression. Flow cytometric analysis was used to examine early and late apoptosis, and the protein and mRNA expression of endoplasmic reticulum (ER) stress-associated unfolded protein response (UPR) pathway proteins and apoptotic proteins [C/EBP homologous protein (CHOP) and caspase‑12] was detected by western blotting and the reverse-transcription polymerase chain reaction, respectively. The results indicated that the cirrhosis model was established successfully and that fibrosis was significantly increased in the cirrhosis model group compared with that in the normal control group. Flow cytometric analysis showed that early and late apoptosis in the cirrhosis model was significantly higher compared with that in the control group. The expression of the UPR pathway protein inositol-requiring enzyme (IRE) 1, as well as the expression of CHOP, was increased significantly in the cirrhotic rat tissues compared with that in the control group tissues (P<0.05). In conclusion, apoptosis was clearly observed in the hepatic tissue of cirrhotic rats, and the apoptosis was caused by activation of the ER stress-mediated IRE1 and CHOP.