What is now South Sudan was once part of the Anglo-Egyptian Sudan. This part of the British Empire became the Republic of Sudan when independence was achieved in 1956. After the First Sudanese Civil War, the Southern Sudan Autonomous Region was formed in 1972 and lasted until 1983. A second Sudanese civil war soon developed and ended with the Comprehensive Peace Agreement of 2005. Later that year, the Autonomous Government of Southern Sudan was formed. South Sudan became an independent state on 9 July 2011 at midnight local time, after a referendum held in January 2011. In the referendum, nearly 99% of voters wanted to separate from the rest of Sudan.