The occupation of some parts of the country by the Allies in the aftermath of World War I prompted the establishment of the Turkish National Movement. Under the leadership of Mustafa Kemal, a military commander who distinguished himself during the Battle of Gallipoli, the Turkish War of Independence was waged with the aim of revoking the terms of the Treaty of Sèvres. By September 18, 1922, the occupying armies were expelled. On November 1, the newly founded parliament formally abolished the Sultanate, thus ending 623 years of Ottoman rule. The Treaty of Lausanne of July 24, 1923, led to the international recognition of the sovereignty of the newly formed “Republic of Turkey” as the successor state of the Ottoman Empire, and the republic was officially proclaimed on October 29, 1923, in the new capital of Ankara. Mustafa Kemal became the republic’s first President of Turkey