A Baltimore police officer has resigned following a viral video of him repeatedly punching a man identified as 26-year-old DaShawn McGrier.

According to reports, McGrier was moving to leave after police pulled up to where he was hanging out and he noticed an officer that he had a history with and didn't want any trouble. McGrier was arrested in June for allegedly assaulting the unnamed officer, and his trial was scheduled for later this month. This time around, it was McGrier who was assaulted.

The officer reportedly asked McGrier for his identification and when he refused, the officer hit McGrier repeatedly and pinned him to the ground. McGrier's attorney Warren Brown said he sustained a "Fractured jaw, two fractured ribs, he lost feeling in his left leg," in the incident. He has since regained feeling in his leg.

According to Baltimore Police, McGrier was taken into custody and received medical treatment, and he was released without any charges. The unnamed officer was suspended during an investigation of the incident, and the officer later resigned.

Interim Baltimore Police Commissioner Gary Tuggle released a statement, which read, "While I have an expectation that officers are out of their cars, on foot, and engaging citizens, I expect that it will be done professionally and constitutionally. I have zero tolerance for behavior like I witnessed on the video today. Officers have a responsibility and duty to control their emotions in the most stressful of situations."

Brown is planning to take action against the officer and the Baltimore Police Department.