The loss of Rumelia (Ottoman territories in Europe) with the First Balkan War (1912–1913) was followed by the arrival of millions of Muslim refugees (''muhacir'') to Istanbul and Anatolia. Historically, the Rumelia Eyalet and Anatolia Eyalet had formed the administrative core of the Ottoman Empire, with their governors titled Beylerbeyi participating in the Sultan's Divan, so the loss of all Balkan provinces beyond the Midye-Enez border line according to the London Conference of 1912–13 and the Treaty of London (1913) was a major shock for the Ottoman society and led to the 1913 Ottoman coup d'état. In the Second Balkan War (1913) the Ottomans managed to recover their former capital Edirne (Adrianople) and its surrounding areas in East Thrace, which was formalised with the Treaty of Constantinople (1913). The 1913 coup d'état effectively put the country under the control of the Three Pashas, making sultans Mehmed V and Mehmed VI largely symbolic figureheads with no real political power.