Napoleon was fighting the unjust system of feudalism. Feudalism is about people getting unfair advantages from their position at birth. Think of the English royal family as an example.
Napoleon fought that talented people should have the right to participate in public life as well.
They killed Napoleon and pushed the oppression approximately back to where it was.
For the most part, Napoleon was fighting England. There’s a reason he was always fighting England.