The imperialist and powerful countries that previously owned the African nations have been distracted by the world war, therefore leading the African countries to revolt and state their independence while their imperialist countries were weakened by the war.
(hope this helps!)