You've followed a link for necessary evil; this probably refers to:

* A character who feels they have to be evil for the sake of a greater virtue: NecessarilyEvil, or some associated trope
* The comic series ''ComicBook/NecessaryEvil''
* ''Literature/NecessaryEvil'', a part of ''Literature/TheMilkweedTriptych'' by Ian Tregillis