The trope of a hero crossing moral lines into villainy or anti-hero territory creates compelling character arcs. Here are notable examples:
Batman grows increasingly ruthless in his pursuit of the Joker, employing surveillance, torture, and deception, blurring the line between hero and vigilante.
Peter Parker's frustration and grief lead him to briefly become Venom, a villainous persona, before reclaiming his heroic identity.
Magneto and Mystique initially join the villain Apocalypse, believing in his vision, but ultimately turn against him to aid the X-Men, showcasing fluid allegiances.
These stories explore the fragility of morality, the corrupting influence of power, and the thin line between justice and vengeance.