Klatt Shaw et al. report that transient activation of zebrafish macrophages directs spontaneous regeneration after spinal cord injury. By comparing regenerative and non-regenerative vertebrates, they identify Tcim as a central regulator of lipid metabolism and phagocytosis following injury. Tcim expression enhances lipid and debris clearance in zebrafish and mouse macrophages.