ISTANBUL (Reuters) \u2013 President Tayyip Erdogan declared Istanbul\u2019s Hagia Sophia open to Muslim prayer as a mosque on Friday after a top court ruled that the building\u2019s conversion to a museum by modern Turkey\u2019s founding statesman was illegal. Erdogan made his announcement just an hour after the court ruling was revealed, brushing aside international warnings not to change the status of the nearly 1,500-year-old monument that is revered by Christians and Muslims alike. The United States and church leaders were among those to express concern about changing the 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. Greece\u2019s culture ministry described the court decision as an \u201copen provocation\u201d to the civilized world. But Erdogan has sought to shift Islam into the mainstream of Turkish politics in his 17 years at the helm. He has long proposed restoring the mosque status of the huge sixth-century building, which was converted into a museum in the early days of the modern secular Turkish state under Mustafa Kemah Ataturk. \u201cThe decision was taken to hand over the management of the Ayasofya Mosque. ..to the Religious Affairs Directorate and open it for worship,\u201d the decision signed by Erdogan said. The Council of State, Turkey\u2019s top administrative court, said in its ruling: \u201cIt was concluded that the settlement deed allocated it as a mosque and its use outside this character is not possible legally. \u201cThe cabinet decision in 1934 that ended its use as a mosque and defined it as a museum did not comply with laws,\u201d it said, referring to an edict signed by Ataturk. APPLAUSE The association which brought the court case, the latest in a 16-year legal battle, said Hagia Sophia was the property of the Ottoman leader who captured the city in 1453 and turned the already 900-year-old Greek Orthodox cathedral into a mosque. Erdogan, a pious Muslim, threw his weight behind the campaign before local elections last year which dealt a painful blow to his ruling Islamist-rooted AK Party. He was due to speak shortly before 9 p.m. (1800 GMT), his head of communications said. In parliament in Ankara, AK Party members stood and applauded after Erdogan\u2019s decree was read aloud. The Ottomans built minarets alongside the vast domed structure, while inside they added huge calligraphic panels bearing the Arabic names of the early Muslim caliphs alongside the monument\u2019s ancient Christian iconography. The Russian Orthodox Church said it regretted that the court did not take its concerns into account when making its ruling and said the decision could lead to even greater divisions, the TASS news agency reported. Previously, Ecumenical Patriarch Bartholomew, the spiritual head of some 300 million Orthodox Christians worldwide and based in Istanbul, said converting it into a mosque would disappoint Christians and would \u201cfracture\u201d East and West. US Secretary of State Mike Pomp had also urged Turkey to maintain the building as a museum. But Turkish groups have long campaigned for Hagia Sophia\u2019s conversion, saying it would better reflect Turkey\u2019s status as an overwhelmingly Muslim country.