A villain but not a villain
Been thinking on who fits this category and I cant think of many people that does. A person who appeared as a villain but their purpose for doing what they were doing was "kind of" for a good cause. Example, Thanos during the Avengers movie... his purpose was to prevent people from starving or needing. He wiped out half of a planet civilization because the people on the planet was starving. Now there is enough food for each mouth on that planet. Plenty. Even though he did an evil act (killing), the planet is in a healthier state than ever due to his cause.
Does anyone in comics fits this. Their evil acts wasnt as evil as it was made out to be. He/she purpose actually helped. Remember, these are not selfish acts.
Also, please explain your answer.