The underlying cause of endophthalmitis was cataract surgery in 117 (30.1%), intravitreal anti-vascular endothelial growth factor (VEGF) injection in 97 (24.9%), endogenous in 57 (14.7%), post vitrectomy in 32 (8.2%), post glaucoma surgery in 29 (7.5%), following corneal infection or surgery in 5 (1.3%), and following trauma or other procedures in 52 (13.4%). This evidence concerns the gene VEGFA and corneal infection.