The extracellular protease matrix metalloproteinase-9 is activated by inhibitory avoidance learning and required for long-term memory.