Brendan Schaub flipped his truck in a terrifying off-roading crash earlier this month ... and the wild accident was all captured on video.
It happened while the former UFC fighter was trying to show off his souped-up TRX for an episode of his "Tune Town" YouTube show.
The 40-year-old took the ride to Johnson Valley, Calif. for a day of fun after getting it all tricked out ... and, initially, everything was going according to plan.
He and the vehicle were getting good shots blowing through dirt, sand and boulders -- and despite getting stuck at one point, the afternoon still appeared to be a success.