Optogenetic stimulation of mouse Hoxb8 microglia in specific regions of the brain induces anxiety, grooming, or both. Here, HOXB8 is linked to Anxiety.