Answer :
In general "They fought for independence" although it should be noted that the end of World War II brought with it a streak of decolonization that helped the local efforts.
Before WW II, many African countries were ruled by a handful of European nations. They achieved independence by fighting for independence.