One man will likely think twice about his plans for the day before putting on a pair of baggy pants.

Things didn't work out so well for the unidentified man who tried to climb over a fence Friday after allegedly attempting to break into some classrooms at Miles-Exploratory Learning Center in Tucson, Arizona, according to KOLD.

According to a locksmith at the school, the man had tried to get inside some classrooms.

>> Read more trending news

When the man realized he had been spotted, he tried to get away, but his baggy pants got caught on the spike on top of the iron fence, leaving him literally caught with his pants down.

As he hung there, a couple of passersby couldn’t resist taking pictures of the man hanging upside-down.

"I was going to help him off the fence, but by the time I got back around the block the cops were rolling up two cars deep," Jesse Sensibar told ABC 15. "I don't know what his story was, but it must not have been good enough. Fifteen minutes later when I went back by the other direction going home, he was cuffed up in the backseat. He smiled for the camera."

Tucson police said they have no record of the incident.