Kemal Atatürk became a national hero after turning back the Allies at Gallipoli during World War I. Still, the Ottomans were defeated. To prevent partition of Anatolia, he led a rebellion against the sultanate. In 1923 the sovereignty of the Turkish Republic was internationally recognized with the Treaty of Lausanne. Atatürk became its first president.