Abstract Microglia are resident immune cells of the central nervous system (CNS) and play key roles in brain homeostasis. During anesthesia, microglia increase their dynamic process surveillance and interact more closely with neurons. However, the functional significance of microglial process dynamics and neuronal interaction has remained unclear. Using in vivo two-photon imaging in awake mice, we discover that microglia enhance neuronal activity after the cessation of general anesthesia. Hyperactive neuron somata are directly contacted by microglial processes, which specifically co-localize with GABAergic boutons. Electron microscopy-based synaptic reconstruction after two-photon imaging reveals that microglial processes enter into the synaptic cleft to shield GABAergic inputs. Microglial ablation or loss of microglial β2-adrenergic receptors prevent post-anesthesia neuronal hyperactivity. Together, our study demonstrates a previously unappreciated function of microglial process dynamics, which allow microglia to transiently boost neuronal activity by physically shielding inhibitory inputs.