Alternative splicing generates protein diversity essential for neuronal properties. However, the precise mechanisms underlying this process and its relevance to physiological and behavioural functions are poorly understood. To address these issues, we focused on a cassette exon of the Caenorhabditis elegans insulin receptor gene daf-2, whose proper variant expression in the taste receptor neuron ASER is critical for taste-avoidance learning. We show that inclusion of daf-2 exon 11.5 is restricted to specific neuron types, including ASER, and is controlled by a combinatorial action of evolutionarily conserved alternative splicing factors, RBFOX, CELF and PTB families of proteins. Mutations of these factors cause a learning defect, and this defect is relieved by DAF-2c (exon 11.5+) isoform expression only in a single neuron ASER. Our results provide evidence that alternative splicing regulation of a single critical gene in a single critical neuron is essential for learning ability in an organism.