The French Territory of the Afars and the Issas became Djibouti in 1977. A peace accord in 2001 ended the final phases of a ten-year uprising by Afar rebels.