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
No they definitely were bad guys. You cant try to murder someone just because they were born as a specific person you dont like and be good guys. And they didnt differentiate between the Earth queen and any other ruler. Their ideology when it came down to it, was indefensible trash.