The "Scramble for Africa" between 1870 and 1900 ended with almost all of Africa being controlled by European states. Racing to secure as much land as possible, but wanting to avoid conflict amongst themselves, without regard to local differences leaders divided up the continent, formalising it in the Berlin Agreement in 1885. By 1905, control of almost all African soil was claimed by Western European governments, with the only exceptions being Liberia (which had been settled by African-American former slaves) and Ethiopia (which had successfully resisted colonisation by Italy). Britain and France had the largest holdings, but Germany, Spain, Italy, Belgium, and Portugal also had colonies. As a result of colonialism and imperialism, a majority of Africa lost sovereignty and control of natural resources such as gold and rubber. The introduction of imperial policies surfacing around local economies led to the failing of local economies due to an exploitation of resources and cheap labor. Progress towards independence was slow up until the mid-20th century. By 1977, 54 African countries had seceded from European colonial rulers.
During WWI and WWII, African soldiers were conscripted into imperial militaries. This led to a deeper political awareness and the expectation of greater respect and self-determination, which was left largely unfulfilled. During the 1941 Atlantic Conference, the British and the US leaders met to discuss ideas for the post-war world. One of the provisions added by President Roosevelt was that all people had the right to self-determination, inspiring hope in British colonies.
On February 12, 1941, United States President Franklin D. Roosevelt and British Prime Minister Winston Churchill met to discuss the postwar world. The result was the Atlantic Charter. It was not a treaty and was not submitted to the British Parliament or the Senate of the United States for ratification, but it turned to be a widely acclaimed document. One of the provisions, introduced by Roosevelt, was the autonomy of imperial colonies. After World War II, the US and the African colonies put pressure on Britain to abide by the terms of the Atlantic Charter. After the war, some British considered African colonies to be childish and immature; British colonisers introduced democratic government at local levels in the colonies. Britain was forced to agree but Churchill rejected universal applicability of self-determination for subject nations. He also stated that the Charter was only applicable to German occupation states, not to the British Empire.
For early African nationalists, decolonization was a moral imperative. In 1945 the Fifth Pan-African Congress demanded the end of colonialism. Delegates included future presidents of Ghana, Kenya, Malawi and national activists.
Colonial economic exploitation led to European extraction of Ghana’s mining profits to shareholders, instead of internal development, causing major local socioeconomic grievances. Nevertheless, local African industry and towns expanded when U-boats patrolling the Atlantic Ocean reduced raw material transportation to Europe. In turn, urban communities, industries and trade unions grew, improving literacy and education, leading to pro-independence newspaper establishments.
Indeed, in the 1930s, the colonial powers had cultivated, sometimes inadvertently, a small elite of leaders educated in Western universities and familiar with ideas such as self-determination. In some cases where the road to independence was fought, settled arrangements with the colonial powers were also being placed. These leaders came to lead the struggles for independence, and included leading nationalists such as Jomo Kenyatta (Kenya), Kwame Nkrumah (Gold Coast, now Ghana), Julius Nyerere (Tanganyika, now Tanzania), Léopold Sédar Senghor (Senegal), Nnamdi Azikiwe (Nigeria), and Félix Houphouët-Boigny (Côte d'Ivoire).