In messages published on social media, Avicii, whose real name is Tim Bergling, said that stress, anxiety, and illness played a role in his decision.
Avicii was one of the industry's most successful tour DJs artists such as Madonna and Chris Martin. He had a crossover pop hit with "Wake Me Up" in 2013 and was a big name in electronic dance music called EDM.
In August 2016, he said goodbye to his fans in what he described as his last live show. The decision to withdraw from the tour was tough, he said, but he needed to step away and pursue other interests.
"Making music is what makes me happy and I met so many great people during my tours, seen so many great places and created endless memories," he wrote on social media back then.
"The decision I made might seem strange to some, but everyone is different and that was the right thing for me."
Party and Fear
"Yeah, I drank too much, generally too much," he said. "Then I got a pancreatitis attack [at 21
Fans left supportive messages on Facebook after he stopped touring had no chance to see him live.
He assured them that he would continue to make music – in the studio.
And in August 2017, a year after his last tour date, he announced that he would release a new album.
"Really excited to be back with music, it's been a long time since I've released anything," he wrote on social media.
"My focus on this first EP of the album was to get a mix of new and old songs, some of which have asked fans what they expected, mixed with brand new songs they've never heard before." 
& # Avicii: True Stories & # 39;
The DJ had been open about his struggles. A documentary about his life, "Avicii: True Stories", showed some of his fights with fame after his 2011 hit "Levels", followed by "Wake Me Up" two years later.
"The year 2015 should have been a highlight for the producer, but behind the scenes it was too much – stress, anxiety and illness ate him away," says a summary of the documentation on his website.
"Everyone knows Avicii, but few people know Tim," Tsikurishvili said. "I think this documentary really shows Tim's fight and strength of character, being a global superstar artist is not as easy as on Instagram."
Fans and musicians mourn
Warm applause from musicians and fans.
"Devastating news about Avicii, a beautiful soul, passionate and extremely talented with so much more to do," tweeted DJ colleague Calvin Harris. God bless you, Tim. "
Singer Wyclef Jean described him as" a little brother ".
" In my darkest hour, I went to Sweden and he was there for me and we found light in good conversation and music, "Jean tweeted. He will be missed forever. I can not describe this pain. "
CNN's Lisa Respers France contributed to this report.