Syntaxin1A is organized in nanoclusters that are critical for the docking and priming of secretory vesicles from neurosecretory cells. Whether and how these nanoclusters are affected by neurotransmitter release in nerve terminals from a living organism is unknown. Here we imaged photoconvertible syntaxin1A-mEos2 in the motor nerve terminal of Drosophila larvae by single-particle tracking photoactivation localization microscopy. Opto- and thermo-genetic neuronal stimulation increased syntaxin1A-mEos2 mobility, and reduced the size and molecular density of nanoclusters, suggesting an activity-dependent release of syntaxin1A from the confinement of nanoclusters. Syntaxin1A mobility was increased by mutating its polyphosphoinositide-binding site or preventing SNARE complex assembly via co-expression of tetanus toxin light chain. In contrast, syntaxin1A mobility was reduced by preventing SNARE complex disassembly. Our data demonstrate that polyphosphoinositide favours syntaxin1A trapping, and show that SNARE complex disassembly leads to syntaxin1A dissociation from nanoclusters. Lateral diffusion and trapping of syntaxin1A in nanoclusters therefore dynamically regulate neurotransmitter release.