Retinal endothelial cells (RECs) are the primary target cells for diabetes-induced vascular damage. The P2X7/NLRP3 pathway plays an essential role in amplifying inflammation via an ATP feedback loop, promoting the inflammatory response, pyroptosis, and apoptosis of RECs in the early stages of diabetic retinopathy induced by hyperglycemia and inflammation. 3TC, a type of nucleoside reverse transcriptase inhibitor, is effective against inflammation, as it can targeting formation of the P2X7 large pore formation. Hence, our aim was to evaluated the anti-inflammatory effects and potential mechanisms of action of 3TC in vitro in retinal microvascular endothelial cells treated with high-glucose (HG) and lipopolysaccharide (LPS), as well as in vivo in the retinas of C57BL/6J male mice with streptozotocin-induced diabetes. The expression of inflammasome-related proteins P2X7 and NLRP3, and apoptosis in the retinas of 3TC-treated diabetic mice were compared to those of untreated diabetic mice. Furthermore, the anti-inflammatory, anti-apoptotic, and anti-pyroptotic effects of 3TC were evaluated in vitro in cultured mice retinal endothelial cells. Co-application of HG and LPS significantly increased the secretion of IL-6, IL-1β, and TNF-α, and ATP levels, whereas 3TC decreased cell inflammation, apoptosis, and pyroptosis. Inhibition of P2X7R and NLRP3 inflammasome activation decreased NLRP3 inflammasome-mediated injury. 3TC prevented cytokine and ATP release following co-application of HG and LPS/BzATP. Our findings provide new insights regarding the mechanisms of action of 3TC in diabetic environment-induced retinal injury, including apoptosis and pyroptosis.