The main way in which Napoleon's actions sparked nationalism across Europe is that Napoleon tried to claim large amounts of sovereign territory in the name of France, which angered local inhabitants, who then drew together in order to resist Napoleonic rule.