Studies in the past few years have highlighted many extra-skeletal functions of vitamin D. Prominent amongst these is the ability of vitamin D to stimulate antibacterial activity in a diverse array of cells types. In this Review, the author discusses our new perspective on vitamin D as an immunomodulator, and the possible effect of this role in human disease.