A Saudi-funded mosque in Nice opened its doors for the first time on Saturday, after a 15-year tussle with the local town hall.

The Nicois En-nour Institute mosque received authorisation to open early on Saturday from the local prefect, substituting for town mayor Philippe Pradal, who recently took over from Christian Estrosi.

Estrosi was implacably opposed to the construction of the mosque and in April had secured the green light to sue the French state in a bid to block its opening in the southern city.

He had accused the building's owner, Saudi Arabia's Islamic Affairs Minister Sheikh Saleh bin Abdulaziz, of "advocating sharia" and wanting to "destroy all of the churches on the Arabian peninsula".

Estrosi, mayor since 2008, said that the project, which was initiated under his predecessor in 2002, was unauthorised.

People in Nice had shown their support for the mosque, with a petition for it garnering over 2,000 signatures, according to The Local, a French website.

It's no surprise that the mosque is popular. Practicing Muslims in the Riviera city have so far only had one smallish downtown option at which to pray, where worshippers can spill out on the street at peak praying times, The Local reported.

The mosque's opening was described as "a real joy" by Ouassini Mebarek, lawyer and head of a local religious association.

"But there is no smug triumphalism," he said. "This is recognition of the law, and a right to freely practise one's religion in France in accordance with the values ​​of French Republic."

Ten Muslim faithful entered the mosque's basement, which can hold 880 worshippers, for evening prayers.

"A Muslim prefers the house of God to his own home, provided it is beautiful," said Abdelaziz, one of the worshippers who came to pray with his son Mohamed.

In the room reserved for women, Amaria, a mother from neighbouring Moulins said: "Today we are happy. Happy and relieved to have found this place. ... We are tired of hiding ourselves, we aren't mice."

The construction of the mosque began in 2003 in a building in an office district.