The Greek army evacuated not only Anatolia, but also Eastern Thrace and the islands of Imbros and Tenedos in accordance with the terms of the Treaty of Lausanne (1923). A population exchange between Greece and Turkey was agreed between the two countries, with over 1.5 million Christians and almost half a million Muslims being uprooted. This catastrophe marked the end of the "Megali Idea", and left Greece financially exhausted, demoralized, and having to house and feed a proportionately huge number of Greek refugees.