World number one Novak Djokovic won a stunning victory Monday over the Australian government, overturning the cancellation of the tennis star's visa on Covid-19 health grounds, and ending his detention.
It was an extraordinary setback for the Australian government, which has imposed strict pandemic requirements on arriving foreign travellers for the past two years.
But the Australian government's lawyer told the court that Immigration Minister Alex Hawke may still decide to use his "personal power of cancellation" despite the player's victory.
The 34-year-old Djokovic arrived in Melbourne last week ahead of the Australian Open, which starts in just one week, hoping to win a record-breaking 21st Grand Slam title.
But instead of a champion's welcome, officers at Melbourne's Tullamarine Airport decided the unvaccinated star had failed to present a solid medical reason for not being jabbed.
Djokovic's visa was revoked and he was moved to a notorious immigration detention facility pending deportation.
In an emergency online court hearing Monday, the judge said the government side had agreed to drop its visa decision and he ordered Djokovic's immediate release.
"Such release must occur no later than 30 minutes after the making of this order," he said.
Djokovic has been in detention at the former Park Hotel, a five-storey facility that holds about 32 migrants trapped in Australia's hardline immigration system -- some for years on end.
An early plea by Djokovic to be moved to a facility where he can train for the Australian Open had fallen on deaf ears, his lawyers said.
The court's finding, read out in an online hearing, recalled that Djokovic was interviewed overnight at Melbourne airport after his arrival late on Wednesday night.
In the early hours of the next morning, the player was told he had until 8:30 am to reply to the proposed cancellation of his visa. But instead, the border agent cancelled it at 7:42 am.
If Djokovic had been given until 8:30 am as first promised, "he could have consulted others and made submissions to the delegate about why his visa should not be cancelled," the judge said.
Though the hearing was held online, a small group of Djokovic fans gathered outside the federal court building, waving a Serbian flag, holding up a photo of their hero and dancing to the tune of an accordion.
Earlier, at a rally in Belgrade, Djokovic's mother Dijana claimed her son was staying "in not human conditions" during his four-night stay at the detention centre.
"They detained him and even don't give him breakfast, he has only lunch and dinner," she said, quoted by local media.
"He does not have a normal window, he stares at a wall."
Prime Minister Ana Brnabic said this weekend that after "constructive talks" with her Australian counterpart "we managed that he gets gluten-free food, exercise equipment, a laptop."
Though it had no bearing on his court case, Djokovic's claim of a positive test on December 16 stirred controversy after it emerged he had attended a gathering that day for the Serbian national postal service launching a stamp series in his honour.
Pictures shared by the Belgrade tennis federation also showed him at a young players' event in the city on December 17.
It reported that he had handed over cups and prizes to players. No one was wearing a mask.
Another tennis player -- Czech doubles specialist Renata Voracova -- has also had her visa cancelled after obtaining a medical exemption.
She flew out of Australia on Saturday after being held in the same Melbourne centre as Djokovic.
Watch the latest DH Videos here: