African nationalism emerged in the mid-19th century as ideas of independence and unity spread among colonial societies. Both ideological beliefs and social circumstances fueled growing nationalist sentiments, as certain groups found the message appealing. Nationalist movements were eventually able to achieve independence due to factors within Africa, like cooperation between social groups, and external factors, such as weakened European powers after World War II.