How did Africans resist European imperialism?

How did Africans resist European imperialism?