Background: Vitamin D deficiency is associated with cardiovascular disease such as coronary artery disease, heart failure, and hypertension. Vitamin D deficiency activates the renin-angiotensin-aldosterone system, which affects the cardiovascular system. For this reason, it could be suggested that there is a relationship between vitamin D deficiency and atrial fibrillation (AF). In our study, we compared 25-hydroxyvitamin D (25-OHD) levels between nonvalvular AF, valvular AF, and control groups in sinus rhythm. Method: A total of 102 patients with nonvalvular chronic AF without any other cardiovascular disease (mean age 62.51 + 5.88; group I) and 96 patients with AF, which is associated with mitral valve disease (mean age 61.51 + 5; group II) were included in our study. Of all, 100 age-matched healthy people with sinus rhythm were accepted as control groups (mean age 61.35 + 5.44). Routine biochemical parameters, 25-OHD and parathormone levels were performed. Results: Baseline characteristics of the study groups were comparable. Group I patients had a lower vitamin D level than group II and the control group (6.51 + 4.89, 9.24 + 7.39, and 11.18 + 6.98 ng/mL, P < .001, respectively). In groups I and II, the patients' left atrium diameter and systolic pulmonary artery pressure are higher than the control group. Conclusion: As a result, our study revealed a relationship between vitamin D deficiency and nonvalvular AF.