Here, the authors show in a murine model of ischemic stroke that inhibition of phagocytosis by MEGF10 and MERTK deletion in microglia and astrocytes attenuated damage and improved neurological outcomes by preventing synapse loss. The gene discussed is MEGF10; the disease is ischemic stroke.