A quirky Brooklyn model died early yesterday after he drunkenly stumbled onto a subway track’s electric third rail while urinating in Williamsburg, law-enforcement sources said.

Matthew Zeno, 30, of Bedford-Stuyvesant, and a pal had left the Gotham City Lounge in Bushwick and were waiting for the G train at Broadway and Union Avenue at about 3:10 a.m. when Zeno felt nature calling, sources said.

Zeno, who wore an orange mohawk and worked as a part-time ad model, and Aaron Quisenberry, 26, jumped onto the tracks but were spooked when they heard a train rumbling into the station and started to stagger away. Zeno stumbled onto the electrified rail.

“He was peeing, and he tripped,” one source told The Post.

Quisenberry tried to help his pal but was shocked when he touched him.

Zeno was pronounced dead at Woodhull Hospital.