The social ants, bees, wasps, and termites include some of the most ecologically-successful groups of animal species. Their dominance in most terrestrial environments is attributed to their social lifestyle, which enable their colonies to exploit environmental resources with remarkable efficiency. One key attribute of social insect colonies is the division of labour that emerges among the sterile workers, which represent the majority of colony members. Studies of the mechanisms that drive division of labour systems across diverse social species have provided fundamental insights into the developmental, physiological, molecular, and genomic processes that regulate sociality, and the possible genetic routes that may have led to its evolution from a solitary ancestor. Here we specifically discuss the conserved role of the foraging gene, which encodes a cGMP-dependent protein kinase (PKG). Originally identified as a behaviourally polymorphic gene that drives alternative foraging strategies in the fruit fly Drosophila melanogaster, changes in foraging expression and kinase activity were later shown to play a key role in the division of labour in diverse social insect species as well. In particular, foraging appears to regulate worker transitions between behavioural tasks and specific behavioural traits associated with morphological castes. Although the specific neuroethological role of foraging in the insect brain remains mostly unknown, studies in genetically tractable insect species indicate that PKG signalling plays a conserved role in the neuronal plasticity of sensory, cognitive and motor functions, which underlie behaviours relevant to division of labour, including appetitive learning, aggression, stress response, phototaxis, and the response to pheromones.