Melatonin, which is mainly secreted by the pineal gland, appears to have anti-inflammatory activities. acute pancreatitis (AP) is characterized by inflammation and acinar cell death, and is associated with a high mortality rate. it has been reported that melatonin can alleviate cerulein (cer) or cer + lipopolysaccharide (lPS)-induced inflammatory responses in ar42J rat pancreatic acinar cells (ar42J cells). ccaaT/enhancer binding protein homologous protein (cHoP) is a specific transcription factor involved in endoplasmic reticulum (er) stress-induced apoptosis, and regulates er stress responses. However, the mechanisms of the anti-inflammatory effects of melatonin' are unknown, particularly the relationship between melatonin and er stress. Therefore, the present study aimed to investigate the anti-inflammatory activity of melatonin in ar42J cells and analyze its molecular mechanisms during er stress. The rna interference method was used to determine the potential role of cHoP in ar42J cells during aP. In vitro models of aP were induced by treating ar42J cells with cer + lPS, and pre-treatment with melatonin was used to identify the potential anti-inflammatory mechanisms. The cells also underwent cell counting Kit-8, western blotting and reverse transcription-quantitative Pcr analyses. The expression levels of er stress-related molecules were rapidly activated in the early stage and increased over time in the ar42J aP models, with significant pancreatic inflammation and apoptosis. However, knockdown of CHOP expression significantly reduced apoptosis, the activation of nF-κB and the downstream signal pathway. Moreover, cells treated with melatonin exhibited attenuated inflammation, decreased expression levels of er stress-associated proteins and inhibition of apoptosis. Thus, the present results suggested that melatonin may attenuate the inflammatory response by inhibiting the activation of the cHoP-mediated pathway in ar42J cells.