Objective DNA methylation plays an important role in inflammation and oxidative stress. This study aimed to investigate the effect of inhibiting DNA methylation on lung ischemia–reperfusion injury (LIRI). Methods We adopted a completely random design for our study. Thirty-two rats were randomized into the sham, LIRI, azathioprine (AZA), and pluripotin (SC1) groups. The rats in the LIRI, AZA, and SC1 groups received left lung transplantation and intravenous injection of saline, AZA, and SC1, respectively. After 24 hours of reperfusion, histological injury, the arterial oxygen partial pressure to fractional inspired oxygen ratio, the wet/dry weight ratio, protein and cytokine concentrations in lung tissue, and DNA methylation in lung tissue were evaluated. The pulmonary endothelium that underwent hypoxemia and reoxygenation was treated with AZA or SC1. Endothelial apoptosis, chemokines, reactive oxygen species, nuclear factor-κB, and apoptotic proteins in the endothelium were studied. Results Inhibition of DNA methylation by AZA attenuated lung injury, inflammation, and the oxidative stress response, but SC1 aggravated LIRI injury. AZA significantly improved endothelial function, suppressed apoptosis and necrosis, reduced chemokines, and inhibited nuclear factor-κB. Conclusions Inhibition of DNA methylation ameliorates LIRI and apoptosis and improves pulmonary function via the regulation of inflammation and oxidative stress.