This home intruder picked the wrong house to hit.

When 27-year-old Matthew Lawrence Bergstedt allegedly kicked in the door of his ex-girlfriend’s apartment in Raleigh, North Carolina, a man inside whacked him in the face with a piece of firewood, leaving him with two nasty shiners, officials said.

Bergstedt forced his way inside the back door of the Shanda Drive home around 7 p.m. Monday and then ran into a nearby vacant apartment after a 20-year-old man clobbered him, according to The News and Observer.

Cops charged Bergstedt with breaking and entering and attempted breaking and entering.

In his mugshot, the blond-haired prowler has two puffy black eyes and bloody wounds on his nose.

Bergstedt was released Tuesday morning after posting a $3,000 bond, the newspaper reported.