An Amherst motorist who refused to pull over in Clarence eventually was stopped and charged with driving while intoxicated, Erie County sheriff’s deputies reported Wednesday morning.

Deputies Simon Biegasiewicz and Dave Zamorek reported they were driving north on Transit Road, near Sheridan Drive, at about 1 a.m. when they saw a speeding southbound car. They tried to pull over the driver but he fled, driving through red lights at three intersections before he eventually stopped.

As deputies approached, the motorist drove off again, deputies said.

After the vehicle was finally stopped, the driver was removed from it, deputies said.

Zakariya H. Ibrahim, 37, failed roadside sobriety tests, deputies said, and registered a blood-alcohol content of 0.18 percent.

Ibrahim was charged with aggravated driving while intoxicated, reckless endangerment, resisting arrest, obstructing governmental administration, unlawful fleeing a police officer in a motor vehicle, as well as 14 violations of vehicle and traffic law. He’s in the county Holding Center, awaiting arraignment in Clarence Town Court.