BACKGROUNDStudies have shown that a history of suicide attempts is associated with low levels of antioxidant vitamins. However, the specific relationship between vitamin C and suicidal ideation remains poorly understood. The purpose of this study is to investigate the effect of vitamin C on the development of suicidal ideation and to explore further the causal relationship using Mendelian randomization (MR).METHODSUsing the 2005-2018 National Health and Nutrition Examination Survey (NHANES) dataset, a comprehensive, cross-sectional, stratified survey of 28,623 participants aged 20 years and older was conducted. Suicidal ideation was assessed using item 9 of the Patient Health Questionnaire-9 (PHQ-9) item. The relationship between vitamin C and suicidal ideation was revealed by weighted multiple linear regression, smooth curve fitting, hierarchical analysis, and interaction test. To determine causality, MR was performed on vitamin C and suicidal ideation.RESULTSIn cross-sectional studies, all models showed a negative association between vitamin C and suicidal ideation, with a 37 % reduction in the risk of suicidal ideation for each unit increase in vitamin C in the highest quartile in the fully adjusted model. The results of the subgroup analysis showed that the association between vitamin C and suicidal ideation was stable across gender, age, education, smoking status, and marital status. In the MR study, our bivariate model showed no significant causal relationship between vitamin C and the development of suicidal ideation.CONCLUSIONSDietary vitamin C intake was negatively associated with the development of suicidal ideation. However, genetic evidence does not support causation of these associations.