Dreams of Empire

What were the driving motivations behind the colonization of Africa? As a result, how did these dreams of empire cause the Great Powers of Europe to go to war (World War I)?