Carlos Perez, 34, of Algonquin.

A man was arrested after he allegedly drove drunk and fled from police in Huntley while endangering the life of a child, who was in his car, court documents said.

Carlos Perez, 34, of the 400 block of Sweitzer Road in Algonquin, was charged with aggravated fleeing to elude, child endangerment, driving under the influence of alcohol and driving on the wrong side of the roadway.

Officers with the Huntley Police Department attempted to conduct a traffic stop around 12:50 a.m. Saturday.

The officers were attempting to stop a 2019 Ram pickup truck northbound on Route 47 at Algonquin Road.

A criminal complaint alleges Perez, the driver of the truck, refused to stop after two fully marked squad cars activated their lights and sirens.

The truck crossed the double yellow line twice, traveling on the wrong side of the road, the complaint said.

[Suggested Article]  Secretary of State employee arrested, charged with official misconduct for allegedly forging vehicle title application

The truck fled from police and disobeyed at least two traffic control devices.

The complaint said a child, who was under the age of 18, was in the car at the time.

Officers eventually arrested Perez and determined he was under the influence of alcohol, a separate complaint said.

McHenry County Judge Mark Facchini ordered Perez held on a $50,000 bond.

Perez remains held in the McHenry County Jail and would need to post $5,000 cash in order to be released.

A status of preliminary hearing is scheduled for Tuesday.