PHILADELPHIA (AP) — A man who led police on a wild two-hour chase spanning two states was facing charges of stealing $21 worth of underwear from a supermarket.

The white van that led police on a chase through New Jersey and Pennsylvania (6 ABC)

Police records show that 54-year-old Robert Ritter was accused of stealing a pack of underwear and package of T-shirts on July 9 from a supermarket in Brooklawn, New Jersey. Authorities say he also shoved a security officer.

He also faces stalking charges in Gloucester Township, New Jersey. It wasn't immediately clear if Ritter had an attorney.

Police began pursuing his white van Monday night at 8 p.m. Ritter drove into Philadelphia, back into New Jersey, and then back into Philadelphia.

The pursuit ended in south Philadelphia when a police car bumped the van, causing it to flip over. Ritter was taken into custody.

(Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)