North Yorkshire Police attempted to stop a red Peugeot 307 at 1am on Tuesday, after it was observed being driven suspiciously on Skipton Road.
Police pursued the driver into Broadacres Estate after they failed to stop. They were however able to escape and left the car locked near Wetherby Road.
When officers forced the boot open they discovered the weapon, which was recovered along with the car.
If you have information call 101