Turkey's president Recep Tayyip Erdogan has declared Istanbul's Hagia Sophia open to Muslim worship after a top court ruled that the building's conversion to a museum by modern Turkey's founding statesman was illegal.
Erdogan made the announcement on Friday an hour after the court ruling was revealed, despite international warnings not to change the status of the nearly 1,500-year-old monument, revered by Christians and Muslims alike.
"The decision was taken to hand over the management of the Ayasofya Mosque ... to the Religious Affairs Directorate and open it for worship," the decision signed by Erdogan said.
Erdogan had previously proposed restoring the mosque status of the UNESCO World Heritage Site, a focal point of both the Christian Byzantine and Muslim Ottoman empires and now one of the most visited monuments in Turkey.
Earlier, a top Turkish court revoked the Byzantine-era Hagia Sophia's status as a museum. The Council of State, which was debating a case brought by a Turkish religious organisation, cancelled a 1934 cabinet decision that defined the sixth-century building as a museum.
"It was concluded that the settlement deed allocated it as a mosque and its use outside this character is not possible legally," Turkey's top administrative court said in the ruling.
"The cabinet decision in 1934 that ended its use as a mosque and defined it as a museum did not comply with laws," it said.
Erdogan shared on his Twitter feed a copy of the decree he had signed which said the decision had been taken to hand control of the Ayasofya Mosque, as it is known in Turkish, to the country's religious directorate and reopen it for worship.-Al Jazeera