He was 28.
"It is with profound sorrow that we announce the loss of Tim Bergling, also known as Avicii," a statement to CNN read. "He was found dead in Muscat, Oman this Friday afternoon local time, April 20th. The family is devastated and we ask everyone to please respect their need for privacy in this difficult time. No further statements will be given."
Avicii was one of the most successful touring DJs in the industry, working with artists including Madonna. He had a crossover pop hit in 2013 with "Wake Me Up."
But he also saw the downside of fame in the electronic dance music genre known as EDM.
"It's very easy to become too attached to partying," he told Rolling Stone last year. "You become lonely and get anxieties. It becomes toxic."
He retired from performing in 2016 after a string of health issues, including acute pancreatitis.
"Yeah I was drinking way too much, partying in general way too much," he said. "Then I got a pancreatitis attack [at 21], which is very rare. So that forced me to do a 180 and stop drinking."
The DJ explained in a 2017 posting on his site that he had no intention of giving up music completely, writing "We all reach a point in our lives and careers where we understand what matters the most to us."
"For me it's creating music," he wrote. "That is what I live for, what I feel I was born to do."
Avicii also wrote that he was heading back into the studio to make more art.
"The next stage will be all about my love of making music to you guys. It is the beginning of something new," his posting said. "Hope you´ll enjoy it as much as I do."
The social media tributes from fellow musicians and artists poured in as soon as the news broke on Friday afternoon. Some tweets have been shared thousands of times.
Producer Hardwell shared a photo of himself with Avicii and wrote a tribute in which he thanked him for "changing the world with your amazing music."
Can't believe this, I'm gonna miss you so bad. From your first show where we played together, to all the amazing memories we shared. Thank you for changing the world with your amazing music and for being such an inspiration. I'm gonna miss you brother, until we meet again! ❤ pic.twitter.com/FjJyLA5Ohc — Hardwell (@HARDWELL) April 20, 2018
Devastating news about Avicii, a beautiful soul, passionate and extremely talented with so much more to do. My heart goes out to his family. God bless you Tim x — Calvin Harris (@CalvinHarris) April 20, 2018
Wow, I would like to take a moment to pay tribute to the man who really opened my eyes as to what my productions could one day sound like. @Avicii was a genius and a music innovator, and I can not believe he is no longer with us. RIP to the very best. — Charlie Puth (@charlieputh) April 20, 2018
Horrible to hear about Avicii, only 28 years old... 😕
RIP 💜 — Jack Maynard (@Jack_Maynard23) April 20, 2018
Damn Dude RIP #Avicii 🙏🏽 — DJ Pauly D (@DJPaulyD) April 20, 2018
Such sad news to hear about Avicii passing. Too young and way too soon. My condolences go out to his family, friends and fans x — DUA LIPA (@DUALIPA) April 20, 2018
R.I.P Avicii 😣 I can't believe this.... You were taken from us way too soon. You'll never be forgotten man. This hurts 💔 — Dante D'Angelo💧 (@itsdantedangelo) April 20, 2018
No words can describe the sadness I'm feeling right now, hearing about Avicii passing away....💔
Thoughts go out to his family and friends... — Zedd (@Zedd) April 20, 2018
I have no words. I remember how amazing it was to make Lonely Together and it felt like just yesterday we were talking. Condolences to Avicii's family, friends, and the fans who supported him. May he rest in peace. Gone too soon. I'm devastated. Heartbroken. — Rita Ora (@RitaOra) April 20, 2018
my sincerest and most heartfelt condolences to the friends, fans and families of @Avicii :( Banter aside, nobody can deny what he has accomplished and done for modern dance music and im very proud of him. — Goat lord (@deadmau5) April 20, 2018
Oh my god truly devastated for Avicii very very sad news way to young ... what a talent he was. rest in peace x — Liam (@LiamPayne) April 20, 2018
"Devastating news about Avicii, a beautiful soul, passionate and extremely talented with so much more to do," fellow superstar DJ Calvin Harris tweeted. "My heart goes out to his family. God bless you Tim."
Media playback is unsupported on your device Media caption The DJ will be remembered for club hits like Levels, Wake Me Up and Hey Brother
Swedish DJ Avicii, one of the world's biggest dance music stars, has died in Oman at the age of 28.
Avicii's club anthems include Wake Me Up, Levels, and recently, Lonely Together with Rita Ora.
His representative said in a statement: "It is with profound sorrow that we announce the loss of Tim Bergling, also known as Avicii.
"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.
Image copyright Muscat Hills Resort Image caption One of the last pictures of Avicii (centre), at a tourist resort near Muscat
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.
Who was Avicii?
One of the biggest names in dance music of the last 10 years, he had a catalogue full of pumping, uplifting, house smashes
He started his career when he won a production competition held by Pete Tong in 2008
He went on to notch up 11 billion streams on Spotify and was the first EDM DJ to stage a worldwide arena tour
He was nominated for two Grammy Awards and had nine UK top 10 singles, including two number ones
He suffered from health problems including acute pancreatitis, in part due to excessive drinking
He later announced a return to the studio, and released a new self-titled EP in 2017.
The EP, Avĩci (01), was nominated for a Billboard music award for top electronic album just days before his death.
As well as working with the likes of Aloe Blacc and Rita Ora, Avicii collaborated with artists including Madonna and Coldplay.
Former Radio 1 DJ Judge Jules, who often performed alongside him, said his biggest achievement was being the first electronic dance star to break America.
"He was the first huge commercial star," Judge Jules told the BBC. "He really became someone who couldn't go out on the street, he was so heavily recognised."
Other leading electronic artists wrote tributes to Bergling after the news of his death.
Skip Twitter post by @CalvinHarris Devastating news about Avicii, a beautiful soul, passionate and extremely talented with so much more to do. My heart goes out to his family. God bless you Tim x — Calvin Harris (@CalvinHarris) April 20, 2018 Report
Skip Twitter post by @deadmau5 my sincerest and most heartfelt condolences to the friends, fans and families of @Avicii :( Banter aside, nobody can deny what he has accomplished and done for modern dance music and im very proud of him. — Goat lord (@deadmau5) April 20, 2018 Report
Singer Dua Lipa tweeted: "Such sad news to hear about Avicii passing. Too young and way too soon. My condolences go out to his family, friends and fans."
US band Imagine Dragons tweeted: "Working with him was one of my favourite collaborative moments. Far too young. The world was a happier and fuller place with his presence and art."
"No words can describe the sadness I'm feeling right now, hearing about Avicii passing away," offered DJ Zedd, while singer Adam Lambert, who collaborated on the track Lay Me Down, called him "a brilliant composer and a gentle spirit."
An enchanting artist
Analysis by Mark Savage, BBC Music reporter
At Avicii's last ever show in August 2016, one crazed fan climbed a 100ft-high (30m) scaffolding tower, just to get a better view.
That's not something that happens that often during a DJ set (who needs to see the stage anyway?) but it was a testament to Avicii's ability to enchant an audience.
Confetti cannons and bass drops aside, his shows encapsulated the inclusive, everyone-welcome philosophy that led him to collaborate with Coldplay, Nile Rodgers and Antony Hegarty as well as bluegrass and metal musicians in the studio.
That final show, at Ushuaia Ibiza, was a two-hour greatest hits set, featuring crowd pleasers like Levels and Wake Me Up alongside his remixes of Robyn and Dizzee Rascal.
But the DJ, who famously let the cat out of the bag when he revealed most major DJs pre-programmed their sets (comments he later walked back), was also known for dropping unexpected, whimsical tracks into his performances. A bit of Smokey Robinson here; a dash of Chicago there.
He approached it all with an energy and optimism that permeated his own recordings. It's no surprise he was one of the most beloved DJs on the circuit.
Avicii in his own words
To Billboard Magazine in 2016: "When I look back on my life, I think: whoa, did I do that? It was the best time of my life in a sense. It came with a price - a lot of stress, a lot of anxiety for me - but it was the best journey of my life"
Post-retirement on his website: "[Creating music], that is what I live for, what I feel I was born to do... The next stage will be all about my love of making music to you guys. It is the beginning of something new."
Prelude to music video for hit The Nights: "When I was 16, my father said, 'You can do anything you want with your life, you just have to be willing to work hard to get it.' That's when I decided when I die, I want to be remembered for the life I live, not the money I make."
Are you an Avicii fan? Did you meet him or go to one of his gigs? Tell us about it by emailing haveyoursay@bbc.co.uk.
You can also contact us in the following ways:
Image copyright Reuters
Artists have been paying tribute to Avicii, who has died suddenly in Oman.
It's not yet known how the Swedish DJ died, but two years ago he announced his retirement after suffering from health problems.
Rita Ora, who he recently collaborated with on the track Lonely Together, tweeted that she had "no words" after hearing the news.
Diplo posted that Avicii's music will "live forever", writing that he "set the precedent" for other producers.
Media playback is unsupported on your device Media caption The DJ will be remembered for club hits like Levels, Wake Me Up and Hey Brother
Radio 1 presenter Annie Mac began her Friday evening show paying tribute to Avicii, saying it's a "massive loss for dance music" and that it was "absolutely devastating news".
Skip Twitter post by @RitaOra I have no words. I remember how amazing it was to make Lonely Together and it felt like just yesterday we were talking. Condolences to Avicii's family, friends, and the fans who supported him. May he rest in peace. Gone too soon. I’m devastated. Heartbroken. — Rita Ora (@RitaOra) April 20, 2018 Report
It's known that the 28-year-old has been suffering from pancreatitis, reportedly caused by heavy drinking.
He once said in an interview: "Drinking became routine for me, but it's impossible to keep up touring and drinking at the same time, because you are going to crash."
The electronic dance music (EDM) star reportedly made $250,000 (£180,000) a night on tour.
Image copyright Muscat Hills Resort Image caption One of the last pictures of Avicii (centre), at a tourist resort near Muscat
It was after Avicii's, real name Tim Bergling, 2011 hit Levels that he achieved worldwide acclaim.
During his career he notched up 11 billion streams on Spotify and was the first EDM DJ to stage a worldwide arena tour, as nominated for two Grammy Awards and had nine UK top 10 singles, including two number ones.
American musician Skrillex remixed that song and posted online that he was "a genius and an innovator, yet sensitive and humble".
Other artists posting messages online include Martin Garrix, Liam Payne, Madonna, Dua Lipa, Calvin Harris and Deadmau5.
Skip Twitter post by @CalvinHarris Devastating news about Avicii, a beautiful soul, passionate and extremely talented with so much more to do. My heart goes out to his family. God bless you Tim x — Calvin Harris (@CalvinHarris) April 20, 2018 Report
Skip Twitter post by @deadmau5 my sincerest and most heartfelt condolences to the friends, fans and families of @Avicii :( Banter aside, nobody can deny what he has accomplished and done for modern dance music and im very proud of him. — Goat lord (@deadmau5) April 20, 2018 Report
In 2016 Avicii announced he was retiring from touring, after health complications, but it's thought it's something he didn't really enjoy.
Nicky Romero, who collaborated with Avicii on I Could Be The One, said: "He was more of the musician in the studio than the guy that wants to be on stage, tour the world.
"I never really thought that he was super enjoying his DJ sets. It felt like he wanted to do it but he didn't want to feel the pressure of it or be the guy that's in the spotlight in front of thousands and thousands of people."
Radio 1 presenter Danny Howard said it was a "great loss to music".
Skip Twitter post by @dannyhowarddj So so upsetting to hear about Avicii. Far too young to go and such a talent who took risks that defined his massively successful career! A great loss to Music 😢😢 RIP Tim 🙏🏼 pic.twitter.com/RaYbQp86Jc — Danny Howard (@dannyhowarddj) April 20, 2018 Report
Pete Tong said he was "a major influence in opening up mainstream USA to electronic dance music".
Skip Twitter post by @petetong Sad to hear of @Avicii passing. From humble beginnings went onto conquer the world was a major influence in opening up mainstream USA to electronic dance music. For him it was always about the music not the circus . May his spirit and soul find peace. Way too young x — Pete Tong mbe (@petetong) April 20, 2018 Report
Follow Newsbeat on Instagram, Facebook and Twitter.
Listen to Newsbeat live at 12:45 and 17:45 every weekday on BBC Radio 1 and 1Xtra - if you miss us you can listen back here.
Swedish DJ Avicii Dead at 28
Swedish DJ Avicii, real name Tim Bergling, died at age 28 on Friday, April 20, his publicist confirmed.
"It is with profound sorrow that we announce the loss of Tim Bergling, also known as Avicii," his publicist Diana Baron said in a statement. "He was found dead in Muscat, Oman this Friday afternoon local time, April 20th. The family is devastated and we ask everyone to please respect their need for privacy in this difficult time. No further statements will be given."
Bergling started out releasing music on Laidback Luke Forum in the late '00s, where DJs and producers would post music and seek feedback from budding peers. In 2011, he broke through to an international audience with the progressive house track "Levels," which hit No. 1 in his native Sweden and on the U.S. Billboard Dance Club Songs chart -- and earned him a Grammy nod. His 2012 David Guetta collab "Sunshine" earned him a Grammy nomination as well, and that same year, he became the first electronic DJ/producer to headline New York City's storied Radio City Music Hall.
In 2013, Avicii released his debut studio album, True, which featured the game-changing, massive international hit "Wake Me Up!" ft. Aloe Blacc. Combining EDM, folk and country music, the song became a No. 1 hit in many countries and peaked at No. 4 on the Billboard Hot 100. His second album, Stories, dropped in 2015 and featured vocals from Chris Martin, Wyclef Jean, Robbie Williams, Matisyahu, Brandon Flowers, Gavin DeGraw and more. The EP Avīci (01) came out in Aug. 2017 and featured his Rita Ora collaboration "Lonely Together."
Avicii's health issues were known to the public for several years prior to his death. He suffered from acute pancreatitis, in part due to excessive drinking. In 2014, he canceled numerous shows in order to recover after having his gallbladder and appendix removed.
Eventually, he decided to retire from touring entirely in an emotional letter penned in March 2016.
“To me it was something I had to do for my health,” Bergling told The Hollywood Reporter in 2016. “The scene was not for me. It was not the shows and not the music. It was always the other stuff surrounding it that never came naturally to me. All the other parts of being an artist. I'm more of an introverted person in general. It was always very hard for me. I took on board too much negative energy, I think.”