Africans resisted European colonization in various ways, though they were often outmatched militarily by more advanced European technology. In Nigeria, resistance lasted for years against the French. Algeria also mounted a resistance that lasted almost 50 years, one of the longest at the time. Ethiopia was unique in successfully resisting through the leadership of Emperor Menelik II, who purchased modern weapons from European powers to build up his forces and ultimately defeated invading Italian, French, and British forces. However, most African nations were eventually colonized due to their lack of comparable weapons.