Djibouti (formerly known as French Somaliland and then as the Territory of the Afars and the Issas) is situated on the east coast of Africa along the Bab al-Mandab, the strait that links the Red Sea with the Gulf of Aden. It is bordered by Eritrea to the N , Ethiopia N , W , and S , by Somalia on the SE , and by the Bab al-Mandab, Gulf of Tadjoura, and Gulf of Aden on the E . Djibouti encompasses approximately 22,000 sq km (8,494 sq mi) and has a total boundary length of 830 km (516 mi), which includes a coastline of 314 km (195 mi). Comparatively, the area occupied by Djibouti is slightly smaller than the state of Massachusetts.
Djibouti's capital city, Djibouti, is located in the eastern part of the country.