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. Islam is the largest religion in the country, practiced by 94% of the population. The land was known as French Somaliland 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.