The maintenance of the immune system can be costly, and a lack of dietary protein can increase the susceptibility of organisms to disease. However, few studies have investigated the relationship between protein nutrition and immunity in insects. Here, we tested in honeybees (Apis mellifera) whether dietary protein quantity (monofloral pollen) and diet diversity (polyfloral pollen) can shape baseline immunocompetence (IC) by measuring parameters of individual immunity (haemocyte concentration, fat body content and phenoloxidase activity) and glucose oxidase (GOX) activity, which enables bees to sterilize colony and brood food, as a parameter of social immunity. Protein feeding modified both individual and social IC but increases in dietary protein quantity did not enhance IC. However, diet diversity increased IC levels. In particular, polyfloral diets induced higher GOX activity compared with monofloral diets, including protein-richer diets. These results suggest a link between protein nutrition and immunity in honeybees and underscore the critical role of resource availability on pollinator health.