The rate of behavioural decline in the ageing population is remarkably variable among individuals. Despite the considerable interest in studying natural variation in ageing rate to identify factors that control healthy ageing, no such factor has yet been found. Here we report a genetic basis for variation in ageing rates in Caenorhabditis elegans. We find that C. elegans isolates show diverse lifespan and age-related declines in virility, pharyngeal pumping, and locomotion. DNA polymorphisms in a novel peptide-coding gene, named regulatory-gene-for-behavioural-ageing-1 (rgba-1), and the neuropeptide receptor gene npr-28 influence the rate of age-related decline of worm mating behaviour; these two genes might have been subjected to recent selective sweeps. Glia-derived RGBA-1 activates NPR-28 signalling, which acts in serotonergic and dopaminergic neurons to accelerate behavioural deterioration. This signalling involves the SIR-2.1-dependent activation of the mitochondrial unfolded protein response, a pathway that modulates ageing. Thus, natural variation in neuropeptide-mediated glia-neuron signalling modulates the rate of ageing in C. elegans.