This duo picked the wrong pub to knock off.

Joseph McInnis III, 21, and 22-year-old Tyree McCoy robbed a Maryland bar filled with dozens of off-duty officers there for a cop retirement party, WBAL-TV reported.

The armed crooks entered the take-out portion of Monaghan’s Pub in Woodlawn on Tuesday night and held up an employee at gunpoint before running off with an undisclosed amount of cash, police said, according to the news outlet.

“At that time, the person who had been behind the counter knew that there was a retirement party for a police officer happening, so they went into the other portion and alerted the officers to the fact that they had just been involved in an armed robbery,” Baltimore County Police Officer Jennifer Peach said.

Off-duty officers at the shindig quickly ran out and took the men into custody.

They were charged with armed robbery and possession of a handgun and were being held without bail at the Baltimore County Detention Center, according to the report.

“I’m sure that they weren’t planning on there being a large room filled with police officers,” Peach said.