This secondary analysis of a randomized clinical trial investigates the effect of increased vitamin D supplementation up to age 2 years on the risk of internalizing, externalizing, and total psychiatric problems at ages 6 to 8 years.