The correct answer is C. Pan-Africanism.
Pan-Africanism played a significant role in inspiring anticolonial and independence movements in Kenya and Nigeria during the mid-1900s. This ideology emphasized the unity and self-determination of African peoples and was influential in rallying support against colonial rule across the continent.