Write a story in which the main character has deep convictions, and beliefs in what they are doing to change the world.
Open hidden twist just before the main character succeeds in what they are doing.
Hidden Twist
The main character is actually not the good guy in the story, write your ending as such.