Wiz Khalifa has learned the hard way not to piss in public.
The rapper, real name Cameron Jibril Thomaz, got caught urinating behind The Flats bar in Pittsburgh, Pennsylvania, around 2:30 a.m. on Saturday, according to Pittsburgh public safety spokesperson Sonya Taylor.
NEWS: Wiz Khalifa Detained at LAX for Riding Hoverboard
The "Black and Yellow" rapper was not arrested, but was issued a non-traffic citation for public urination by the Pittsburgh Bureau of Police.
Following the incident, Khalifa took to Instagram to poke fun at the situation.
“I just love nature,” he captioned a photo of himself appearing to take a leak.
“Have a great day,” he wrote on another.
The Pittsburgh native, 28, was in town to perform at the Petersen Events Center Friday night as part of #ZooAfterHours, a Midnight Madness event that kicked off the University of Pittsburgh's basketball season.
Earlier this year, Khalifa had another run-in with law enforcement, albeit that one was in California. He was detained by U.S. Customs and Border Patrol at Los Angeles International Airport in August, which he claims was all because he refused to get off of his hoverboard.
It is the year they traveled to in Back to the Future Part II, after all.
NEWS: Wiz Khalifa & Amber Rose's Son Adorably Sings Dad's Hit Songs
The rapper tweeted a picture of himself getting handcuffed face down on the ground by police officers at LAX, writing, "They love sayin stop resisting," followed by a video of him arguing with the cops.
Back in April, ET caught up with Khalifa's ex-wife, Amber Rose, on the red carpet at the MTV Movie Awards in Los Angeles, where she admitted that the rapper will "always be family." Watch the video below to hear more on their reconciliation rumors.