Formerly known as French Somaliland (1896–1967) and the French Territory of the Afars and Issas (1967–77), the country took Djibouti as its name when it gained independence from France on June 27, 1977.