After the Treaty of Zuhab in 1638, Ottoman Empire was able to keep the Asiatic territories up to the 20th century except for the disputable territories of the south and east coasts of the Arabian Peninsula. In the early years of the 20th century the main problem was the rebel in Yemen which was subdued. Ottoman Empire fought against the Allies in the First World War and was defeated. According to Armistice of Mudros Ottoman Empire accepted the loss of all territories in the Arabian Peninsula, Syria, Palestine, Jordan, Lebanon and most of Iraq. Although Turkey and North Iraq were still under Ottoman rule, soon Allies occupied the Mediterranean coast and North Iraq. They also offered Aegean coast (as well as Thrace) to Greece and eastern Anatolia to newly established Armenia by the Treaty of Sèvres. However the treaty became ineffective during the Turkish War of Independence. At the end of the war the Ottoman Empire ceased to exist in 1922. The newly established Turkish Republic kept Mediterranean and Aegean coasts as well as the Eastern Anatolia by the Treaty of Lausanne.