PALMDALE (CBSLA) — Several Los Angeles County Sheriff’s deputies were in standoff with a driver who took them on a pursuit onto the dirt roads of Palmdale Friday afternoon.

The pursuit began around 3:30 p.m., with officers engaging the driver of the vehicle with nonlethal rounds near Tierra Subida Ave. and Avenue S. off Highway 14.

The suspect could be seen putting his hands out the driver side window multiple times before closing it again, even after the officers almost shot out the window.

The man kept officers at bay for more than an hour. He was taken into custody shortly after 5:30 p.m.

Watch the entire pursuit here.