Background: The aim of this study was to investigate the association between vitamin D deficiency (<10 mg/ml) and mortality in patients with and without hepatocellular carcinoma (HCC) in a cohort of patients with liver cirrhosis. Materials and Methods: A prospective study was conducted among 345 patients with liver cirrhosis. Results: At enrolment, 46 (13.3%) patients had HCC. Severe vitamin D deficiency was associated with mortality (p<0.01). At the survival analysis, alpha-fetoprotein >10 ng/ml (p=0.003), vitamin D deficiency (p<0.001), a Model for End-Stage Liver Disease score ≥15 (p<0.001), Child-Pugh class B and C (versus A) (p<0.001) and the presence of active HCC (p<0.001) were strongly associated with death. At the multivariate Cox regression analysis, only Child-Pugh class B and C (versus A) and vitamin D deficiency were found to be significantly associated with death during the follow-up period (p<0.001 and p=0.006, respectively). Conclusion: Vitamin D deficiency is common in patients with HCC, it is associated with active HCC and it negatively affects the overall survival of patients with cirrhosis.