In 1939, while Syria was still a French mandate the French ceded the Sanjak of Alexandretta to Turkey as part of a treaty of friendship in World War II. In order to facilitate this, a faulty election was done in which ethnic Turks who were originally from the Sanjak but lived in Adana and other areas near the border in Turkey came to vote in the elections, shifting the election in favor of secession. Through this, the Hatay Province of Turkey was formed. The move by the French was very controversial in Syria, and only five years later Syria became independent.