Napoleon Bonaparte established the Napoleonic Code in 1804, which did away with privileges based on birth and established equality before the law. It secured the right to property and abolished the feudal system. Napoleon destroyed democracy in France but incorporated revolutionary principles in the administrative field in a rational and efficient manner. Nationalism grew in Europe in the 19th century, influenced by ideas of romanticism, liberalism, and economic hardships. The revolutions of 1848 saw nationalist uprisings demand independence and constitutional rights across Europe. However, by late 19th century, nationalism became aligned with imperialism and intolerant of other national groups, exacerbating tensions that led to World War I.