BANGOR, Maine — A Standish man who led police on a high-speed chase in July through three towns before jumping into the Penobscot River was sentenced Tuesday in Penobscot County Superior Court to 2½ years in prison.

Anthony Edward Alfiero, 23, pleaded guilty Tuesday to endangering the welfare of a child, eluding an officer, aggravated operating after revocation as a habitual offender, and violation of bail conditions.

He faced up to five years in prison and a fine of up to $10,000.

“This sentence was well deserved,” Greg Campbell, assistant district attorney for Penobscot County, said after the sentencing. “This was a very serious incident.”

Alfiero has been held at the Penobscot County Jail unable to make bail since his arrest, according to Campbell. That time will be applied to his sentence.

The defendant also is facing charges in Cumberland County of operating after revocation.

Alfiero was on bail for that charge when he was stopped about 12:15 p.m. July 5 by a Maine state trooper for having expired temporary license plates. Alfiero was driving north on Interstate 95 near the Bangor Mall when he was pulled over.

His girlfriend was riding in the passenger seat, and her 18-month-old daughter was in a car seat in the back seat, according to the Penobscot County District Attorney’s Office. Bail conditions forbid Alfiero from having contact with them.

Alfiero initially gave Maine State Police Trooper Darren Vittum a false name, according to a report published previously in the Bangor Daily News. The suspect sped north on I-95 as Vittum approached the car after checking on Alfiero’s driving record.

The suspect then led police on a winding chase along the interstate and U.S. Route 2 through parts of Orono and Veazie with speeds topping 100 mph at times, Vittum said. After Alfiero turned onto a dead-end street in Veazie, he jumped out of the car and took off on foot.

The car containing Alfiero’s girlfriend and her daughter kept rolling another 50 to 60 feet before striking several trees and coming to a stop, police said. The woman and her child were not injured.

With officers in pursuit, Alfiero reportedly jumped into the Penobscot River.

“He later swam back to us because he knew there was nowhere he could go,” Vittum said on the day Alfiero was arrested.