Ulcerative colitis (UC) is an inflammatory disease of the intestinal mucosa, and immunodeficiency is the main cause. Vitamin D (VD) has been shown to regulate many immune diseases, and studies have found that the level of uric acid (UA) and C-reactive protein (CRP) may also affect the severity of UC. This study aimed to investigate the correlation between VD levels and disease severity in UC patients. To determine serum VD levels in patients with UC of different ages and genders in China, and to study its correlation with UC, and to analyze its correlation with serum UA levels and CRP, so as to provide guidance for the prevention, diagnosis, and treatment of UC. One hundred three UC patients (64 males and 39 females, aged 16-75 years) were diagnosed with varying severity (mild, moderate, and severe). Serum VD levels, UA levels, and CRP levels were measured by electrochemiluminescence. The serum VD level of patients with severe UC was significantly lower than that of patients with mild UC. Gender was significantly correlated with serum UA, CRP, and disease severity in UC patients. Serum VD levels may affect the disease severity of UC patients, and patients with low serum VD content may have more severe disease. Gender affects serum UA, CRP, and disease severity. Males have significantly higher serum UA and CRP levels than females, while disease severity is generally lower than that of females. However, the mechanism of abnormal serum vitamin and trace element levels in UC patients remains to be further studied.