Mali fell under the control of France during the late 19th century. By 1905, most of the area was under firm French control as a part of French Sudan. On 24 November 1958, French Sudan (which changed its name to the Sudanese Republic) became an autonomous republic within the French Community. In January 1959, Mali and Senegal united to become the Mali Federation. The Mali Federation gained independence from France on 20 June 1960.