Wild Wild West
James West (Will Smith) deafeats all of Dr. Loveless' (Kenneth Branagh) goons, and kills Loveless by letting him fall down the desert gorge from his giant mechanical spider. West and Artemus Gordon (Kevin Kline) save President Grant (also Kevin Kline), who makes them the first official secret service agents. The final scene is the two riding the giant spider off into the sunset.
Thanks, Rob T!
(Links open in new window)
Read more about this film at The Internet Movie Database.