This is the result of a character firmly believing that they are doing the right thing which turns out to be wrong in the eyes of many.
This character is either trying to save a life, reach a certain goal, or do something else. In the end that person wholeheartedly believes that they are clearly doing the right things. They don’t really care or want to care what others think of them. I prefer to stick to believing that their pride and their sense of righteousness is what is going to help them achieve their goals.
This character doesn’t have to be a full-blown villain either, they can be a anti-hero or some anti-villain.
The whole world or parts of it will never forget or never forgive that character for what they did. They’ll say they were being selfish, cruel, or entitled to the character.
The only thing that truly matters to that character is protecting what is important to them even if it means the rest of the world utterly hates and reviles them.
Their only reason for doing these things because the world stole what was important to them and then pretty much told them to “piss off” and laugh at their suffering in result.
Bitterly, the character tries to save their soul which eventually becomes tainted by reality and the harshness of their society.
They caused hardships pain, suffering, and made people grossly resent them to their core.
In the end, that character felt they absolutely nothing wrong and did only what they felt was right.
“The world turned it’s back on me and took everything, now it is mine turn to do the same.”
Sometimes, this character will see the light and come to the realization that what they thought was right is utterly wrong. While some will never see the light and will probably die in the end.
Now, tell me, do you have a character in your story that is like this or not at all?