From the silent movie The General (1926) starring Buster Keaton.
The movie was inspired by the Great Locomotive Chase, a true story of an event that occurred during the American Civil War.
They used six cameras for the scene, which began four hours late and required several lengthy trial runs. The shot cost $42,000 which is the most expensive single shot in silent film history.
The production company left the wreckage in the river bed after the scene was filmed. The locomotive became a minor tourist attraction for nearly twenty years, until it was salvaged in 1944–45 for scrap during World War II