It was incorporated as a city in 1834, after being known as the town of York, and being part of York County.
The city was established in 1834, having previously been called the town of York and situated within York County.