Tim Bergling was born in Stockholm on Sept. 8, 1989, to Klas Bergling and Anki Lidén.
Avicii’s club anthems include Wake Me Up, Levels, and recently, Lonely Together with Rita Ora.
“The family is devastated and we ask everyone to please respect their need for privacy in this difficult time.”
No cause of death was announced, and Avicii’s representative said no further statements would be issued.
The electronic dance music (EDM) star, who reportedly made $250,000 (£180,000) a night on tour, had struggled with some health issues in the past, having his gall bladder and appendix removed in 2014.
He announced his retirement from touring in 2016, partly because of the health problems.
“I know I am blessed to be able to travel all around the world and perform, but I have too little left for the life of a real person behind the artist,” he said at the time.
He was nominated for two Grammy Awards for best dance recording, in 2012 and 2013, and his most well-known song, “Wake Me Up,” reached the No. 4 spot on Billboard’s Hot 100 chart.
He also released two albums: the platinum “True,” in 2013, and “Stories,” in 2015. Both “Levels” and “Wake Me Up” were certified platinum; the singles “Waiting for Love,” “The Nights,” “You Make Me” and “I Could Be the One” — a collaboration with Nicky Romero — went gold.
His most recent release was the 2017 EP “Avīci (01),” a six-track collection that was intended to be the first in a series of three EPs.
On his recordings Avicii teamed up with a wide range of musicians, including the bluegrass artist Dan Tyminski, the country-rock singer Zac Brown, the glam-pop vocalist Adam Lambert and the rapper-singer Wyclef Jean.
He produced music for Madonna and Coldplay and became one of the highest paid D.J.s. In 2015, Forbes ranked him as the world’s sixth-highest-paid D.J., estimating his annual earnings at $19 million.
But Avicii retired from international touring in 2016 at age 26 after a series of health scares that struck while he was on the road.
He had his gallbladder and appendix removed in 2014. Before that, at 21, he learned he had acute pancreatitis, which he said was related in part to excessive drinking.
“I was drinking way too much, partying in general way too much,” he said in a 2013 interview with Time magazine. “So that forced me to do a 180 and stop drinking.”
After his retirement, Avicii reassured his fans that he would continue to record music in the studio, which was “the place where it all made sense,” he said in a statement posted to his website. Making music, he wrote, was “what I feel I was born to do.”
“The next stage will be all about my love of making music to you guys,” he added. “It is the beginning of something new.”
He is survived by his parents; his sister, Linda Sterner; and his brothers, Anton Körberg and David Bergling.