Smashing Pumpkins singer Billy Corgan "almost killed" himself "three or four" times.
The musician has been overcome with dark thoughts on a number of occasions and even started planning his death, but his faith in God always pulled him through.
He told TV show Last Call With Carson Daly: "I almost killed myself about three, four, seven times. I literally started planning my death and what I would leave behind, and what I was gonna write. Three or four times in my life.
"What I finally realised, at least on the back end of this, is that God, at least as I understand God, was there all along. Once I was able to process my reality in that way, I no longer felt like a victim."
Billy, 45, has previously told how one of his worst suicidal phases came when he was recording the band's breakthrough album, 'Siamese Dream', in 1993, on which he famously played almost all of the instruments.
He said: "I was suicidal, and I'd been plotting my own death for about two months.
"And if you've ever read anything about the warning signs of suicide one of them is you give away all your stuff, and I'd given away all my stuff, I gave away all my records, I started giving away my guitars.
"I was fantasising about my own death, I started thinking what my funeral would be like and what music would be played, I was at that level of insanity."
Smashing Pumpkins' latest album, 'Oceania', is out now.