Avicii pictured with friends on yacht a day before he died

Popular DJ Avicii was pictured on a yacht with friends a day before he sadly passed away.

TMZ say the boat was off the shore of Muscat, the capital of Oman, where the 28-year-old was holidaying.

Tim Bergling (Avicii's real name) is making the peace sign with a drink in one hand. It's not known whether the drink was alcoholic or not - alcohol addiction is something Bergling had struggled with in the past.

No cause of death has been released although police have said it is not suspicious.

Avicii, who made $250,000 a night when he toured, had serious medical problems.

The Grammy nominee’s gall bladder and appendix were removed in 2014.

He also suffered from acute pancreatitis brought on, in part, by heavy drinking.

In 2016, he announced he’d no longer tour: “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.

In an interview with The Hollywood Reporter, he explained his decision to step back from touring.

“To me it was something I had to do for my health,” he said.

“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.”

In an oft-discussed interview with GQ Magazine, Avicii described his alcoholism that led to acute pancreatitis as stemming from being “so nervous,” and “(getting) into a habit (of drinking), because you rely on that encouragement and self-confidence you get from alcohol, and then you get dependent on it.”

If you feel you need help dealing with depression or a difficult time in your life, call Lifeline on 0800 543 354 or the Suicide Crisis Helpline on 0508 828 865(0508 TAUTOKO). Both are available 24/7.