Regulation of immune function continues to be one of the most well recognised extra-skeletal actions of vitamin D. This stemmed initially from the discovery that antigen presenting cells such as macrophages could actively metabolise precursor 25-hydroxyvitamin D (25D) to active 1,25-dihydroxyvitamin D (1,25D). Parallel observation that activated cells from the immune system expressed the intracellular vitamin D receptor (VDR) for 1,25D suggested a potential role for vitamin D as a localised endogenous modulator of immune function. Subsequent studies have expanded our understanding of how vitamin D exerts effects on both the innate and adaptive arms of the immune system. At an innate level, intracrine synthesis of 1,25D by macrophages and dendritic cells (DC) stimulates expression of antimicrobial proteins such as cathelicidin, as well as lowering intracellular iron concentrations via suppression of hepcidin. By potently enhancing autophagy, 1,25D may also play an important role in combatting intracellular pathogens such as M. tuberculosis and viral infections. Local synthesis of 1,25D by macrophages and DC also appears to play a pivotal role in mediating T cell responses to vitamin D, leading to suppression of inflammatory T helper (Th)1 and Th17 cells, and concomitant induction of immunotolerogenic T regulatory (Treg) responses. The aim of this review is to provide an update on our current understanding of these prominent immune actions of vitamin D, as well as highlighting new, less well-recognised immune effects of vitamin D. The review also aims to place this mechanistic basis for the link between vitamin D and immunity with studies in vivo that have explored a role for vitamin D supplementation as a strategy for improved immune health. This has gained prominence in recent months with the global COVID-19 health crisis and highlights important new objectives for future studies of vitamin D and immune function. This article is protected by copyright. All rights reserved.