Transient information input to the brain leads to persistent changes in synaptic circuits, contributing to the formation of memory engrams. Pre- and postsynaptic structures undergo coordinated functional and structural changes during this process, but how such changes are achieved by their component molecules remains largely unknown. We found that activated CaMKII, a central player of synaptic plasticity, undergoes liquid-liquid phase separation with the NMDA-type glutamate receptor subunit GluN2B. Due to CaMKII autophosphorylation, the condensate stably persists even after Ca2+ is removed. The selective binding of activated CaMKII with GluN2B cosegregates AMPA receptors and the synaptic adhesion molecule neuroligin into a phase-in-phase assembly. In this way, Ca2+-induced liquid-liquid phase separation of CaMKII has the potential to act as an activity-dependent mechanism to crosslink postsynaptic proteins, which may serve as a platform for synaptic reorganization associated with synaptic plasticity.