Two suspected burglars tried to break into a Texas apartment ... but the gun-wielding resident got all trigger-happy, spraying bullets through the front door and causing them to flee for their lives.
Saturday's Wild West-style shoot-out was captured by a doorbell camera recording the hallway outside a Dallas apartment. Fox News obtained the video showing all the madness.
In the clip, one of the suspects, Aaron Contreras, knocks on the door, posing as a maintenance worker and asking if he could come in to check an air-conditioner filter.
The resident, Ethan Rodriguez, was in his bathroom and used his phone connected to his home security camera to respond, rejecting Contreras, who walks away.
The video then jumps to Contreras -- now gripping a pistol -- and his masked cohort trying to kick in the door to Rodriguez's home.
Suddenly, Rodriguez -- armed with his own gun -- starts shooting from inside the apartment as bullets crash through the door, piercing the walls in the hallway. Contreras returns fire before bolting down a flight of stairs with his accomplice. Both, miraculously, escape without a scratch ... Rodriguez was also uninjured.
Dallas police officers soon arrive, assessing the damage outside Rodriguez's apartment and conducting a search inside. Rodriguez was not arrested because he was protecting his home.
Contreras, on the other hand, was eventually apprehended and booked into the county jail for aggravated assault with a deadly weapon, burglary of habitation and deadly conduct discharge of a firearm. He's being held on $150,000 bond.