Shocking video shows the moment a Los Angeles County sheriff’s deputy opened fire on a suspect who repeatedly rammed their vehicle into the deputy’s patrol car.

The sheriff’s deputy was hospitalized and later released after the incident, while the suspect, identified as a Hispanic male, was treated for gunshot wounds, the Los Angeles County Sheriff’s Department said.

The incident happened at around 4:30 a.m. on Thursday morning, according to police.

Authorities said a deputy from the East Los Angeles Sheriff’s Station observed a white SUV speeding and doing doughnuts at the intersection of Eastern and Florence avenues in Bell Gardens.

DUI SUSPECT RELEASED HOURS AFTER ALLEGEDLY MOWING DOWN TEEN AT BUS STOP, COSTING HIM A LEG