What is a story were the main villain actually turned out to be the good guy?

https://midwest.social/post/9468700

What is a story were the main villain actually turned out to be the good guy? - midwest.social

In the third season of the legend of korra, a group of people try to get rid of a monarchy (which is long established as especially unequal and oppressive) in favor of self government. They also try to get rid of the avatar, because she is an infallible being with incredibly outsized power. I love the avatar universe and get how they needed to fight them, but the group wasn’t wrong
Even in the first season, I was siding with the equalists :s