Decolonization after World War 2 led to independence for many nations in India and Africa from European imperial rule. India gained independence from Britain in 1947 after decades of non-violent protests led by Gandhi. Partition created India and Pakistan, and over 1 million died in ensuing violence. Ghana was the first sub-Saharan African country to gain independence in 1957 under Kwame Nkrumah. South Africa gained independence in 1931 but continued apartheid racial segregation policies until the end of the apartheid system in 1994 after international pressure and Nelson Mandela becoming the first black president. Decolonization was often violent and unstable, as seen by civil wars in Nigeria and Congo and genocides in Rwanda and Sudan.