of Mecca, he was perceived to have rebellious inclinations and in 1893 was summoned to Istanbul, where he was kept on the Council of State. In 1908, in the aftermath of the Young Turk Revolution, he was appointed Emir of Mecca by the Ottoman sultan Abdul Hamid II. In 1916, with the promise of British support for Arab independence, he proclaimed the Great Arab Revolt against the Ottoman Empire, accusing the Committee of Union and Progress of violating tenets of Islam and limiting the power of the sultan-caliph. Shortly after the outbreak of the revolt, Hussein declared himself "King of the Arab Countries". However, his pan-Arab aspirations were not accepted by the Allies, who recognized him only as King of the Hejaz. In the aftermath of World War I, Hussein refused to ratify the Treaty of Versailles, in protest at the Balfour Declaration and the establishment of British and French mandates in Syria, Iraq, and Palestine. He later refused to sign the Anglo-Hashemite Treaty and thus deprived himself of British support when his kingdom was attacked by Ibn Saud. After the Kingdom of Hejaz was invaded by the Al Saud-Wahhabi armies of the Ikhwan, on 23 December 1925 King Hussein bin Ali surrendered to the Saudis, bringing both the Kingdom of Hejaz and the Sharifate of Mecca to an end. The second Muslim reaction to European encroachment later in the century and early 20th century was not violent resistance but the adoption of some Western political, social, cultural and technological ways. Members of the urban elite, particularly in Egypt, Iran, and Turkey, advocated and practiced "Westernization". The failure of the attempts at political westernization, according to some, was exemplified by the Tanzimat reorganization of the Ottoman rulers. Sharia was codified into law (which was called the Mecelle) and an elected legislature was established to make law. These steps took away the ulama'''s role of "discovering" the law and the formerly powerful scholar class weakened and withered into religious functionaries, while the legislature was suspended less than a year after its inauguration and never recovered to replace the Ulama as a separate "branch" of government providing separation of powers. The "paradigm of the executive as a force unchecked by either the sharia of the scholars or the popular authority of an elected legislature became the dominant paradigm in most of the Sunni Muslim world in the 20th century." Modern political ideal