The 39-year-old man was hiding behind a tree when he spied a woman walking through a darkened Rörsjö park in central Malmö.
But soon after he decided to jump out and expose himself, the man realised he’d shown his manhood to the wrong woman.
The woman turned out to be an off-duty police officer who was walking home from work, the Kvällsposten newspaper reports.
“He went up and unbuttoned his long coat,” Hans Nilsson of the Skåne police told the newspaper.
When the flasher turned and ran, the police woman gave chase and called her colleagues who were later able to arrest the man.
The 39-year-old, who was also drunk, was then taken to the police station, where he spent the night in a jail cell to sober up.