Djibouti (Arabic: جيبوتي Jībūtī, French: Djibouti, Somali: Jabuuti, Afar: Gabuuti), officially the Republic of Djibouti (Arabic: جمهورية جيبوتي Jumhūriyyat Jībūtī, French: République de Djibouti, Afar: Gabuutih Ummuuno, Somali: Jamhuuriyadda Jabuuti), is a country in the Horn of Africa. It is bordered by Eritrea in the north, Ethiopia in the west and south, and Somalia in the southeast. The remainder of the border is formed by the Red Sea and the Gulf of Aden at the east. Djibouti, which had a population of 818,159 at the 2009 census, is one of the least populous countries in Africa. Islam is the largest religion in the country, practiced by 94% of the population. The land was known as Obock and French Somaliland (Côte française des Somalis) in the 19th century; in 1967, it changed its name to Afars and Issas after new treaties with France. The territory was declared an independent nation in 1977 and changed its name to the "Republic of Djibouti" after its principal city. Djibouti joined the United Nations on September 20, 1977. While Djibouti is an independent sovereign state, it maintains deep French relations, and through various military and economic agreements with France, it receives continued security and economic assistance.