Hang 'Em High (1968)
Hang 'Em High is a 1968 American Western film directed by Ted Post and produced and co-written by Leonard Freeman. It stars Clint Eastwood as Jed Cooper, an innocent man who survives a lynching, Inger Stevens as a widow who helps him, Ed Begley as the leader of the gang that lynched him and Pat Hingle as the judge who hires Jed as a U.S. Marshal.
More at Wikipedia.