Dirty Harry revolutionized the action genre by introducing a flawed and morally ambiguous protagonist, paving the way for future anti-hero characters.