A vitamin that includes both CHOLECALCIFEROLS and ergocalciferols, which have the common effect of preventing or curing rickets in animals. It can also be viewed as a hormone since it can be formed in skin by action of ultraviolet rays upon the precursors, 7-dehydrocholesterol and ergosterol, and acts on vitamin d RECEPTORS to regulate calcium in opposition to parathyroid hormone.