Summary Microglia are brain resident macrophages that play vital roles in central nervous system (CNS) development, homeostasis, and pathology. Microglia both remodel synapses and engulf apoptotic cell corpses during development, but whether unique molecular programs regulate these distinct phagocytic functions is unknown. Here we identify a molecularly distinct synapse-associated microglial subset in the zebrafish ( Danio rerio ). We found that ramified microglia populated synapse-rich regions of the midbrain and hindbrain between 7 and 28 days post fertilization. In contrast, microglia in the optic tectum were ameboid and clustered around neurogenic zones. Using single-cell mRNA sequencing combined with metadata from regional bulk sequencing, we identified synapse-associated microglia (SAMs) that were highly enriched in the hindbrain, expressed known synapse modulating genes as well as novel candidates, and engulfed synaptic proteins. In contrast, neurogenic-associated microglia (NAMs) were enriched in optic tectum, had active cathepsin activity, and preferentially engulfed neuronal corpses. These data yielded a functionally annotated atlas of zebrafish microglia ( https://www.annamolofskylab.org/microglia-sequencing ). Furthermore, they reveal that molecularly distinct phagocytic programs mediate synaptic remodeling and cell engulfment, and establish zebrafish hindbrain as a model circuit for investigating microglial-synapse interactions.