Play video content Exclusive Details

Wiz Khalifa had to bail on a concert on the eastern seaboard because of a bad foot injury -- specifically, he got jacked up while putting in serious work ... MMA style.

Sources connected to the Pittsburgh MC tell TMZ ... Wiz fractured his ankle Friday night during an MMA training session, which left him unable to perform during Saturday night's Hot 104.7's Hot Summer 2019 showcase in Westbrook, Maine.

He was one the headliners on the lineup -- performing alongside acts like A Boogie wit da Hoodie, Ally Brooke, YK Osiris, Big Freedia and others -- but because he couldn't make it ... DMX filled in for him last minute. Not a bad replacement.

Waiting for your permission to load the Instagram Media.

Wiz took to social media Saturday to apologize to fans who'd purchased tickets in hopes of seeing him hit the stage, but promised he'd make it up to them in the future when he was healthy. He also made sure to thank DMX for stepping in on short notice.

If the MMA thing is catching you off guard, it shouldn't. He's been at this for at least a couple years now ... and he's absolutely taking training seriously. Just ask FOX's Jay Glazer.

Back in 2017, Wiz was filmed getting in an MMA sesh with Jay ... and the dude looks like he can absolutely throw down. He's even toyed with the idea of taking an actual fight.

Play video content JULY 2017

What's crazy about this unfortunate setback for Wiz is that he appears to wear protective gear on his legs and ankles when he trains -- at least he did in this video here. He must've been kicking some serious ass to splinter a bone down there ... yowza. BTW, it should be noted ... we're told Wiz was NOT training with Jay in this instance.