Anti-hero -
An anti-hero is a central protagonist who lacks the conventional noble qualities—such as idealism, altruism, or a strict moral code—typically associated with traditional heroes. Unlike villains, who are defined by their antagonistic or evil goals, anti-heroes are complex, flawed characters whose motivations often align with the "good guys," even if their methods are questionable or selfish. HOW TO WRITE AN ANTI-HERO