A French court has suspended a ban on full-body "burkini" swimsuits imposed by a Mediterranean resort that has angered Muslims, feminists and civil liberties campaigners.
Friday's ruling by The Council of State's against Villeneuve-Loubet is expected to set a precedent for the dozens of other French towns that have also laid down such bans.
But it is unlikely to put an end to a controversy that has shown the difficulties France has had integrating its Muslim population.
The issue also highlights the problems Muslims in France have experienced following a series of deadly attacks carried out by Islamist militants against the public in the past 20 months, including in Parais and Nice.
Conservative and far-right politicians have asked for a law to ban burkinis nationwide.
The court said in a statement the decree to ban burkinis in Villeneuve-Loubet "had seriously infringed, in a manner that was clearly illegal, fundamental liberties such as the freedom to come and go, religious freedom and individual freedom".
The burkinis did not pose any threat to public order in Villeneuve-Loubet, the court said.
The burkini issue has filtered into early campaigning for the 2017 presidential election and early reaction to the ruling showed that supporters of the ban, who include ex-president Nicolas Sarkozy, would not let it go.
Some of Sarkozy's closest supporters said they would propose in September a draft law that would allow mayors to ban burkinis.
"We need a law," Nice deputy mayor Christian Estrosi said on Twitter.
Since conservatives do not have a majority in parliament and such a bill would have no chance of being adopted, Estrosi suggested that Socialist Prime Minister Manuel Valls, who himself backed the bans, come up with a draft law.
Valls defended the burkini ban on Thursday while some ministers criticised it, exposing divisions within the government as campaigning begins.
While rulings by the Council of State do set precedents, several mayors said they would not suspend their own bans and rights groups said they would bring them to courts, meaning more lawsuits are expected.
The Council of State has the final word on such matters.
A spokesman for the ruling Socialist Party and the rector of the Great Mosque of Paris, Dalil Boubakeur welcomed the ruling and said they hoped it would calm things down.
But the mayor of Villeneuve-Loubet, Lionnel Luca, of Sarkozy's Les Republicains party, said it would heighten tensions.
"We need to decide if we want a smiley, friendly version of sharia on our beaches or if we want the rules of the (French) republic to be implemented," he said, referring to the Islamic legal and moral code of sharia.