The film takes place during the American Civil War and follows three gunslingers - Blondie (Clint Eastwood), Angel Eyes (Lee Van Cleef), and Tuco (Eli Wallach) - as they search for a buried treasure of gold. The three men form an uneasy alliance, with Blondie and Angel Eyes working together to outwit Tuco, who is notorious for his ruthlessness.