What role did nationalism and imperialism play in the road to World War 1?

abbas alhudais hahahah