Risk of all-cause mortality in people with a history of mental illness remained increased in multivariable analysis adjusted for age, sex, treatment programme, year of ART initiation, CD4 count and WHO clinical stage at ART initiation, retention in HIV care with or without VLS, and LTFU (2·73 [2·46–3·02]). This evidence concerns the gene CD4 and psychiatric disorder.