BackgroundShift work is associated with susceptibility to several neuropsychiatric disorders. This study aims to investigate the effect of shift work on the incidence of neuropsychiatric disorders, and highlighting how individual variability may influence the association. MethodsUK Biobank participants with employment information were included. Cox survival was conducted in main and subgroup analyses. Correlation analyses explored the impact of shift work on brain structures, and mediation analyses were performed to elucidate the shared underlying mechanisms. Shift work tolerance was evaluated through survival analyses contrasting the risks associated with five neuropsychiatric disorders in shift versus non-shift workers across different demographic or occupational strata. ResultsThe analysis encompassed 254,646 participants. Shift work was associated with higher risk of dementia (HR 1.29, 95 % CI 1.10–1.52), anxiety (1.08, 1.01–1.15), depression (1.29, 1.22–1.36), and sleep disorders (1.18, 1.09–1.28), but not stroke (p = 0.20). Shift work was correlated with decreasing volume of various brain regions, particularly in thalamus, lateral orbitofrontal, and middle temporal. Mediation analysis revealed that increased immune response and glucose levels are common pathways linking shift work to these disorders. We observed diversity in shift work tolerance across different individual characteristics, among which socioeconomic status and length of working hours were the most essential. LimitationsSelf-reported employment information may cause misclassification and recall bias. And since we focused on the middle-aged population, the conclusions may not be representative of younger or older populations. ConclusionsOur findings indicated the need to monitor shift worker health and provide personalized management to help adapt to shift work.