This study reveals a strong association between early mental health disorders in cancer patients and increased all-cause mortality, highlighting care needs.