France invaded Mali in 1880. After that, France owned Mali. France gave Mali the names "French Sudan" and the "Sudanese Republic". At some times it also included other nearby countries. In early 1959, Mali and Senegal united and they became the Mali Federation. They became independent from France on June 20, 1960. Senegal left the Mali Federation a few months later. The Republic of Mali, with Modibo Keïta as the first president, left the French Community on September 22, 1960.