Критское восстание
The city remained under Ottoman control despite fighting during the Greek War of Independence (1821-29), the Cretan Revolt (1866–1869) and the Cretan Revolt (1878). Due to the island's mixture of Muslim and Christian residents, Crete was the subject of international debate between the European great powers, most notably at the Treaty of Berlin (1878) which resulted in the Pact of Halepa. During the 19th and early 20th century inter-ethnic violence on Crete eventually led to the mass migration of the island's local Muslim population to other Mediterranean islands or coastal cities. Mass conversions also occurred. The population exchange between Greece and Turkey in 1922 resulted in the deportation of the island's last Muslim residents.