A gunman who stormed a Bronx precinct station Sunday morning shooting at cops dove behind a desk when officers pulled their guns and threw down his firearm, new shocking videos show.

The surveillance videos from inside the police station in the 41st Precinct, obtained by The Post, starts around 8 a.m. with an officer walking up to the desk before the gunman opens fire from just feet away.

The cop runs back for cover before a second officer comes into the scene with his gun drawn in the under-a-minute clip.

The gunman can then be seen taking cover behind a desk and slides his gun across the tile flooring of the station house.

Within seconds of surrendering, more than a dozen cops swarm the front of the precinct to cuff the gunman, the video shows.

A second video shows the first officer on top of the shooter punch the gunman about a dozen times as cops surround the two and appear to try and cuff him.

Another video of the lobby shows the man, dressed in an orange and blue jacket and a black winter hat, just before the shooting casually walking in the precinct before pulling his gun and diving head-first to the floor.

The shooting Sunday morning occurred less than 12 hours after a cop sitting in a marked police van with his partner was ambushed on the streets of Hunts Point.

Law enforcement sources believe the gunman was the same person in both encounters.

The armed man, whose name was not immediately known, was taken into custody and taken to a hospital for his injuries.