ATF3 prevents retinal ganglion cell apoptosis and mitigates microglia-mediated neuroinflammation in retinal ischemia–reperfusion injury. Here, ATF3 is linked to retinal ischemia.