Vitamin D is a nutrient, rather than a medical treatment. It does not cure diseases on its own. However, it does support many bodily functions, so getting enough may be beneficial for reducing the risk of certain conditions.