Optogenetic stimulation of Hoxb8 microglia in the DMS and mPFC induces grooming, whereas optogenetic activation in the BLA and CeA induces anxiety. Here, HOXB8 is linked to Anxiety.