The first African country to be colonized by the Europeans is Algeria. French invasion of Algeria happened in 1830.
Nevertheless, there are two African countries that has been considered not colonized.
Liberia was founded by Americans in and remained under their care and control for just over 17 years before partial independence was achieved through the declaration of a commonwealth on April 4, 1839. True independence was declared eight years later on July 26, 1847. After Liberia independence, the nation was seen as a colony of America and therefore, it was completely neglected by the European nations during the scramble for Africa in the 1880’s.
It all started as Cape Mesurado Colony, a creation of the American Colonization Society, and later expanded to become the Colony of Liberia in 1824. The American Society for Colonization of Free People of Color of the United States (ACS) was started by white Americans in a bid to displace Free Blacks from the United States. They believed that Free Blacks should not have find home in the US but should be repatriated.
Ethiopia otherwise known as abyssinia was considered as being colonized. It was because the Italian that invaded them in 1880 failed woefully in their first attempt. But in 1935 Mossolini ordered a new invasion and on May 9, 1936, Ethiopia was concurred. On june 1 1936, Italy merged Ethiopia, Eritrea and Somalia together to form Africa Orientale Italiana (AOI or Italian East Africa).
Emperor Haile Selassie made an impassioned appeal to the League of Nations on June 30, 1936, gaining support from the US and Russia. But manyLeague of Nations members, including Britain and France, recognized Italian colonization.
It was not until May 5, 1941, when Selassie was restored to the Ethiopian throne, that independence was regained.