Purpose: To report the incidence of acute postoperative endophthalmitis (POE) after macular surgery in France between 2006 and 2016 and to identify associated factors. Methods: This retrospective database study included all hospital discharge records involving a surgical procedure for an epiretinal membrane or a macular hole in France from January 2006 to October 2016. Acute POE was identified by two codes in the tenth edition of the International Classification of Diseases within 42 days of a macular surgical procedure in the French national administrative database. Results: In France, 152 034 macular surgical procedures for epiretinal membranes or macular holes were recorded from 1 January 2006 to 31 October 2016. Suspected acute POE was reported in 381 cases. The incidence of POE was 0.25% overall, 0.30% for epiretinal membrane surgery and 0.14% for macular hole surgery. In multivariable Poisson regression analysis, epiretinal membrane surgery was associated with POE [incidence rate ratio (IRR), 2.24; 95% CI, 1.62-3.11; p < 0.001]. For epiretinal membrane surgery, the 2010-2011 period was significantly associated with a higher risk of POE (IRR, 1.66; 95% CI, 1.13-2.42; p = 0.03). Conclusion: The incidence of POE after macular surgery was 0.25% overall in France between 2006 and 2016 and twice higher for epiretinal membrane surgery than for macular hole surgery. For epiretinal surgery only, the incidence of POE was higher in 2010-2011 (period of the switch to transconjunctival vitrectomy) than in the rest of the study period.