A driver behind the semi got it all on video.
Even those who caught the near accident on video can't quite believe what they're seeing.
"That's amazing," said truck driving instructor Richard Noeller
Noeller says the driver's recovery was 70-percent luck and 30-percent skill.
"The driver side of this truck, the tire is already starting to turn toward the ditch," Noeller said.
Noeller says by turning his front axle the same direction the trailer was tilting, the driver used centrifugal force to push the trailer back down to the ground.
But it took more than just that maneuver to keep the truck from rolling.
"He went in the ditch and that sand out in western Kansas probably was what helped pull that tractor around so sharply," said Noeller. "I think that that and a lot of other factors all took place at once."
Copyright 2016 Nexstar Broadcasting, Inc. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.