The film is Once Upon a Time in the West (1968), directed by Sergio Leone. The female lead, Jill McBain, is played by Claudia Cardinale.