Newly released video shows an Iowa police officer clinging to the hood of a car as the driver attempts to flee during a 2021 incident. 

The bodycam footage from the Carroll Police Department came after the driver was sentenced to five years in prison in connection with the March 5, 2021, encounter. 

Officer Patrick McCarty told a passenger in the vehicle, Dennis Guider Jr., that there was a warrant for his arrest from Illinois, KCCI-TV in Des Moines reported.

The driver got out of the vehicle and Guider moved to the driver's seat and started the car. The officer then pulled out his weapon. 

Iowa police officer car chase

Carroll Police Officer Patrick McCarty is seen on the hood of a car driven by a suspect in Iowa during a 2021 incident. (Carroll Police Department)

As the car kept moving, McCarty jumped on the hood while other officers continued to arrive at the scene.

DES MOINES, IOWA, HIGH SCHOOL SHOOTING: 6 TEENS CHARGED WITH MURDER AFTER 3 STUDENTS SHOT, 1 KILLED, COPS SAY

"Stop the f---ing car!" the officer can be heard yelling at the driver. 

McCarty eventually fell to the ground and broke his back when the vehicle hit a ditch, the news report said. Guider was arrested and pleaded guilty to serious injury by a vehicle. He claimed he feared for his life when McCarty pulled out his gun. 

FLORIDA POLICE FATALLY SHOOT HOMICIDE SUSPECT AFTER CHASE

Cop on hood of car pointing gun at driver in Iowa

A vantage point from a police bodycam shows an Iowa police officer on the hood of a car being driven by a wanted suspect. (Carroll Police Department)

CLICK HERE TO GET THE FOX NEWS APP 

"I feared for my life after the officer pull(ed) out his gun and jump(ed) on the hood of my car," Guider wrote in a letter to the Carroll County clerk of court in February, the Des Moines Register reported. 

Fox News Digital has reached out to the police department for more information.