PERRYVILLE, Md. (WJZ) — A man who police said led officers on a chase through two states in a possibly stolen vehicle was arrested Friday evening in Virginia.

William Galvin, Jr., 29, of Hughesville, was arrested around 5:30 p.m. in Front Royal, Virginia, about 70 miles west of Washington, D.C., Maryland State Police spokesperson Greg Shipley said.

READ MORE: Baltimore Police Stepping Up Deployment On Fourth Of July Weekend, Commissioner Says

Troopers began following the vehicle, which had been reported stolen from Charles County, around 1:45 a.m. on Maryland Route 222 in Ocean City.

The pursuit continued into Delaware before entering back into Maryland in Cecil County.

When the chase entered Perryville, Galvin began driving on the railroad tracks before stopping, turning around and driving toward officers who were on foot, police said.

READ MORE: Baltimore's Behavioral Health Pilot Program Aims To Provide New Youth Services

At least one Perryville officer fired multiple shots at the vehicle; state police said it’s unknown if Galvin was injured. No one else was hurt.

Police said they believe he bailed out of the vehicle and ran into a wooded area.

Galvin is charged with first- and second-degree assault and second-degree assault on a law enforcement officer.

MORE NEWS: State Police Expand Traffic Enforcement On I-83 In Baltimore City

State Police homicide detectives will review the shooting per Perryville police’s request.