Vitamin D has emerged as a central player in the immune system, with its deficiency being implicated in the pathogenesis of several autoimmune diseases, including chronic GvHD. This is a retrospective cohort analysis of 166 patients, who underwent allogeneic hematopoietic stem cell transplantation (HSCT) at the Karolinska University Hospital, evaluating GvHD, graft failure, infectious complications and survival after HSCT in relation to pre-transplantation vitamin D levels. Most of the patients were deficient in vitamin D before HSCT (median 42 nmol/L). In multivariate analysis, vitamin D level before HSCT was identified as a significant independent risk factor for development of cGvHD. The increased incidence of cGvHD was not coupled to better disease-free survival; instead there was a trend towards lower overall survival in the vitamin D-deficient patients. In addition, we found a significant correlation between vitamin D deficiency and incidence of CMV disease, with no case of CMV disease occurring in patients with sufficient levels of vitamin D before HSCT. Our results support a role of vitamin D in immune tolerance following HSCT. These findings could be highly relevant for the care of HSCT patients, and prospective, randomized studies on the effect of vitamin D supplementation are therefore needed.