A post mortem has established that Boyzone singer Stephen Gately died of natural causes, a court official on the island of Majorca said today.
The official said Mr Gately suffered a pulmonary oedema, an accumulation of fluid on the lungs.
The judge also authorised Mr Gately's husband, Andrew Cowles, or his family to take the body home.
The 33-year-old was found dead on Saturday.
His funeral will take place this Saturday at the Church of St Laurence O'Toole in Seville Place in Dublin, according to Boyzone manager Louis Walsh.
His remains will be brought home from Majorca on Friday, accompanied by the other four members of Boyzone, who will return there later this week.
The bandmates, who flew out to the Spanish island on Sunday, returned home last night.
A spokesman said: ‘All the boys are home now. They went there to pay their respects and start dealing with the fall-out of the situation.
‘However, it's clear that them being there at the moment is bringing a lot more attention to the situation.'
Speaking earlier on RTÉ's News At One, Mr Walsh paid tribute to Stephen Gately, saying he was 'a real pop star' and a great professional.