It became a museum in 1935 after the decision of the secularist Turkish government under Kemal Atatürk in 1934. In July 2020, the Islamist Turkish government under Tayyip Erdoğan ordered the Hagia Sophia to be turned back into a mosque following a supreme court annulment of a 1934 presidential decree that made it a museum.