Romanticism was the 19th century artistic and intellectual movement which influenced nationalism in Europe. The artists tried to create a cultural unity which became the foundation of nationalism in Europe.
Romanticism emerged as a reaction to Enlightenment philosophy as it emphasized on emotions, freedom and individual imagination and opposed scientific rationalization and glorification of science.