Wiz Khalifa has drawn the ire of Major League Baseball over a gesture he made while throwing the first pitch at the Pittsburgh Pirates' final home game.

The Taylor Gang head honcho was given the honor of throwing the first pitch at his hometown team's game versus the Baltimore Orioles at PNC Park. Wizzle trotted out to the mound donning a shirt the read "Legalize It." He celebrated his accomplishment by pretending to smoke a joint.

Well, not everyone was cool with Wiz's high-minded way of thinking. Some who saw it took notice on social media. "Hopefully this is not the family friendly experience/message the @pirates wanted to send the kids at the final home game," Pittsburgh meteorologist Jeff Verszyla noted on Twitter. Apparently, the League was not to keen on the idea of Wiz pretending to partake in an illegal and banned substance in front everyone in attendance.

According to Tribune-Review’s Rob Biertempfel, the MLB has released a statement about the matter. It reads: “Marijuana is probated substance in all of our drug programs. It's unfortunate this situation occurred. The #Pirates have informed us that this should not have happened.”

Wiz probably won't be losing any sleep over the matter. Though this will probably be the last time he gets invited to do a first pitch for the Pirates. Now if the Denver Rockies need someone, Kush Master Khalifa is your man.

Wiz recently appeared on one of XXL's 20th Anniversary covers. You have a chance to win all 20 special edition mags.

Check out the rapper's first pitch below.

See 10 Dope Glass Bongs You Should Buy Right Now

More From XXL