Recent advances in optical imaging technology have enabled the measurement of Ca2+ dynamics in individual synaptic spines with high time resolution. Results from work using this new technology have confirmed the view that individual synaptic spines can act as functional chemical compartments with independent dynamics of second-messenger concentration. In particular, the ability of Ca2+ to directly mediate Hebbian coincidence detection has been confirmed.