Ultraviolet (UV) radiation-triggered production of reactive oxygen species (ROS) is a primary contributor to apoptosis in human lens epithelial cells (HLECs), which can ultimately result in cataract formation. The nuclear factor erythroid-2-related factor 2 (Nrf2)-Kelch ECH associating protein 1 (Keap1) pathway, a fundamental oxidative stress regulation mechanism, plays a crucial role in the development of cataracts. Ferulic acid (FA), recognized for its potent antioxidant properties can activate the Nrf2 signaling pathway to mitigate oxidative damage and cell apoptosis. In this study, we have demonstrated the protective effects of FA in reducing UVA-induced oxidative damage and apoptosis in HLECs through the modulation of the Keap1/Nrf2 pathway, as evidenced by both cellular and animal experiments. HLECs and Lens were exposed to 10 J/cm2 UVA radiation with or without prior treatment with FA. We found that UVA radiation increased oxidative damage and cell apoptosis in HLECs, ultimately leading to opacification of rat lenses, while FA was able to attenuate both oxidative damage and cell apoptosis in HLECs and reduce the degree of lens opacification. FA upregulated the expression of antioxidant response factors of the Keap1/Nrf2 pathway and downregulated the expression of apoptosis-related genes in HLECs, as demonstrated by Western blot and RT-qPCR analyses. We also found that UVA radiation increased the degree of demethylation of the Keap1 promoter in HLECs, whereas FA reduced the level of Keap1 promoter demethylation as determined by DNA sequencing. Additionally, UVA upregulated the expression of DNA active demethylase of the Keap1 promoter in HLECs, Dnmt1, Dnmt3a, and Dnmt3b, as shown by immunofluorescence, Western blot, and RT-qPCR, however, FA attenuated the activity of the passive demethylase TET1 in addition to the active demethylases. These results demonstrated that UVA radiation can cause oxidative damage, cell apoptosis, and rat lens opacification by increasing the demethylation of the Keap1 promoter in lens epithelial cells. Conversely, FA was shown to reduce oxidative damage, inhibit cell apoptosis, and decrease rat lens opacification by increasing the methylation of the Keap1 promoter. These findings suggest that FA could be therapeutically beneficial in preventing and mitigating cataracts induced by UVA radiation.