Maintaining a proper balance between excitation and inhibition is essential for the functioning of neuronal networks. However, little is known about the mechanisms through which excitatory activity can affect inhibitory synapse plasticity. Here we used tagged gephyrin, one of the main scaffolding proteins of the postsynaptic density at GABAergic synapses, to monitor the activity-dependent adaptation of perisomatic inhibitory synapses over prolonged periods of time in hippocampal slice cultures. We find that learning-related activity patterns known to induce N-methyl-d-aspartate (NMDA) receptor-dependent long-term potentiation and transient optogenetic activation of single neurons induce within hours a robust increase in the formation and size of gephyrin-tagged clusters at inhibitory synapses identified by correlated confocal electron microscopy. This inhibitory morphological plasticity was associated with an increase in spontaneous inhibitory activity but did not require activation of GABAA receptors. Importantly, this activity-dependent inhibitory plasticity was prevented by pharmacological blockade of Ca(2+)/calmodulin-dependent protein kinase II (CaMKII), it was associated with an increased phosphorylation of gephyrin on a site targeted by CaMKII, and could be prevented or mimicked by gephyrin phospho-mutants for this site. These results reveal a homeostatic mechanism through which activity regulates the dynamics and function of perisomatic inhibitory synapses, and they identify a CaMKII-dependent phosphorylation site on gephyrin as critically important for this process.