Nationalism is having strong support for your own country's independence and interests. This may lead to people believing their country is superior to others.
How did nationalism lead to the First World War?
When nationalism is too strong, it can lead to competition between countries. This inspired many people to support war and join up to fight in 1914. This is closely linked to imperialism as it promotes the idea of one 'superior' country ruling over others.