Could someone explain how nationalism contributed to Napoleon's defeat?

2 answers

By rallying commoners that were not French to serve their nation-states(?)
Lol I guess so