The prevalence of psychiatric comorbidities in patients with chronic urticaria (CU) in a national population is largely unknown. To investigate the prevalence of psychiatric disorders and psychiatric medication use in patients with CU in Taiwan. Data were sourced from Taiwan's National Health Insurance Research Database for 2011. Patients who had a primary/secondary International Classification of Diseases, Ninth Revision, Clinical Modification diagnosis code of 708·1, 708·8 or 708·9 during 2011 with at least two outpatient visits and an antihistamine prescription were identified as CU cases. Patients with CU were classified into three disease severity groups according to their medication types. Psychiatric disorders were identified by patients having three outpatient visits with a primary or secondary diagnosis of a given psychiatric disease. Psychiatric medication use was defined by having at least four outpatient visits with prescriptions for anxiolytics, antidepressants or sleeping pills in 2010 or 2011. Of the 167 132 patients with CU, 82·5% had mild CU, 17·0% had moderate CU and 0·4% had severe CU. Patients with CU had a higher prevalence of psychiatric disorders and psychiatric medication prescription than control groups. The relative risk (RR) of psychiatric disorders was 1·43 for patients with mild, 1·50 for patients with moderate and 2·32 for patients with severe CU vs. the controls (P < 0·001). For psychiatric medication prescription, the RRs were 1·95, 2·70 and 2·09, respectively, vs. controls (P < 0·001). Patients with CU had a higher prevalence and risk of psychiatric disorders and psychiatric medication prescription than control groups. What's already known about this topic? Previous studies have shown a high prevalence of psychiatric comorbidities in patients with chronic urticaria (CU), with rates ranging from 35% to 60%. Anxiety, depression and somatoform disorders have been reported as the most prevalent mental disorders in patients with CU. What does this study add? Patients with CU had a higher prevalence of psychiatric disorders and psychiatric medication use than control groups in the general population. The relative risk (RR) of psychiatric disorders was 1·43 for those with mild CU, 1·50 for those with moderate CU and 2·32 for those with severe CU vs. controls. The RR for psychiatric medication use was 1·95 for those with mild CU, 2·70 for those with moderate CU and 2·09 for those with severe CU vs. controls. Mental health evaluations and management are important elements in CU management.