Avicii wrote of his heartbreaking struggle with addiction and crippling pain in his journal before taking his own life.
Music lovers all over the globe were left devastated when news of the Swedish DJ's tragic death came to light, aged just 28.
Avicii - real name Tim Bergling - ended his life in 2018 while on vacation in Oman after years of battling alcohol and prescription painkiller dependency.
In the new biography Tim, by Måns Mosesson, the true extent of the DJ's suffering is laid bare in his own diary entries.
Having been told to quit alcohol in 2012 after heavy drinking led him to develop agonizing pancreatitis. In his personal journal, he documented his difficulty accepting the diagnosis.
He wrote: "I had a hard time accepting never drinking again though strongly suggested from all doctors to wait at least a year before even having a beer.
"Of course, I didn't listen to the majority of the doctors, I listened to the couple who said it was ok if I was careful. I was ignorant and naive and touring the world, still on the never-ending tour – because once you've circled it once, guess what?
"You start right back over again."
The DJ - remembered for his hit songs 'Levels', 'Wake Me Up' and 'The Nights' - spent years touring the world, jetting from one late-night gig to the next, all the while grappling with ill health.
The documentary Avicii: True Stories, released the year before his death, showed the visibly pained star claim that his grueling lifestyle would kill him.
In fact, the star revealed he found comfort recovering from illness in hospital.
He wrote: "Those days in hospital were the most anxiety and stress-free days I can remember the past six years, those were my true vacations, as depressing as it might sound.
"The relief of going from extreme pain to none, knowing that no one is expecting anything other than for you to wait it out (which is the only way of treating pancreatitis) and then recover was huge. It was an extreme relief considering the insane schedule I had kept up until that point."
If you or someone you know is considering suicide, please contact the National Suicide Prevention Lifeline at 1-800-273-TALK (8255), text "STRENGTH" to the Crisis Text Line at 741-741, or go to suicidepreventionlifeline.org.