The victim of a home invasion managed to turn the tables on his attackers after they unwittingly forced him into his own gun closet.

The unidentified man was in his Houston home on Tuesday when three burglars suddenly kicked in the door, beat him up, and put him in an upstairs closet.

Little did they know, that closet just so happened to be where the man kept his guns.

Waiting until the coast was clear, the victim armed himself and exited the closet. He proceeded downstairs, where he encountered one of the three perps, and gunfire was exchanged.

The burglar was struck in the shoulder and leg; the victim was unharmed.

The two other intruders quickly fled the scene in a Chevy Tahoe. Their injured accomplice chased after them for a short while before collapsing on the street.

A neighbor told the Houston Chronicle that at least two other break-ins have occurred in the last three weeks.

"With what's happening, my neighbors and I are aware they're all connected," he said. ""What happened today is exactly what guns are supposed to do - to protect your home and defend your life and your family."

[H/T: Opposing Views, screengrab via ABC 13]