['Cognitive ability/intelligence quotient (IQ) in youth has previously been associated with subsequent completed and attempted suicide, but little is known about the mechanisms underlying the associations. This study aims to assess the roles of various risk factors over the life course in explaining the observed relationships.', 'The present investigation is a cohort study based on data on IQ test performance and covariates, recorded on 49 321 Swedish men conscripted in 1969-1970, at ages 18-20 years. Information on suicides and hospital admissions for suicide attempt up to the age of 57 years, childhood and adult socio-economic position, and adult family formation, was obtained from linkage to national registers.', 'Lower IQ was associated with increased risks of both suicide and suicide attempt during the 36 years of follow-up. The associations followed a dose-response pattern. They were attenuated by approximately 45% in models controlling for social background, mental ill-health, aspects of personality and behavior, adult socio-economic position and family formation. Based on one-unit decreases in IQ test performance on a nine-point scale, the hazard ratios between ages 35 and 57 years were: for suicide 1.19 [95% confidence interval (CI) 1.13-1.25], fully adjusted 1.10 (95% CI 1.04-1.18); and for suicide attempt 1.25 (95% CI 1.20-1.31), fully adjusted 1.14 (95% CI 1.09-1.20).'] Is cognitive ability in early adulthood associated with later suicide and suicide attempt : the role of risk factors over the life course?