Why can it be a unifying and diving force at the same time?

What is "it"?

hmm..i mean..Why can NATIONALISM be a unifying and diving force at the same time?

How was the Industrial Revolution a moving force to Imperialism?