This guy’s a real sewer rat!

A pervy Japanese man wedged himself into a tiny sewer space so he could take pictures up skirts of passing women, authorities said.

A passerby finally caught on to accused deviant Yasuomi Hari, 28, by spotting his hair coming out of the grate, according to cops.

“His hair got caught at the edge of the grate, which drew the attention of some pedestrians,” noted the spokesman with the Hyogo prefectural police in Kobe, according to the South China Morning Post.

Hari was in a space just under two feet, for almost five hours on Aug. 16, cops said.

Police recovered the smartphone he used for his sick snaps.

While the alleged crime happened nearly three months ago, he was only arrested this week following a lengthy investigation.

This isn’t the first time Hari was busted for this exact act.

He was arrested in June 2013 in a sewer near Konan Women’s University and vowed at the time, “I want to make a fresh start down a new road in life,” according to the Sports Hochi newspaper.