[2] On March 25, 1885, the French signed a treaty with the Gadabuursi, effectively making them a protectorate of France.[11] Although the city's population fell after the completion of the line to Dire Dawa and the bankruptcy (and subsequent government bail-out) of the original company, the rail link allowed Djibouti to quickly overtake the caravan-based trade out of Zeila[12] (then in British Somaliland) and become the premier port for coffee and other goods leaving southern Ethiopia and the Ogaden through Harar.Before the French aligned with the Issa, the Gadabuursi held the position of the first Senator of the country, and is the first Somali head of state to lead the territory compromising Djibouti today.Djama Ali Moussa, a former sailor, pursued his political aspirations and managed to become the first Somali democratically elected head of state in French Somaliland.[13][14] The railway continued operating after the Italian conquest of Ethiopia, but following the tumult of the Second World War, the area became a French overseas territory in 1946.