The Ainsty or the Ainsty of York was a historic district of Yorkshire, England, west of the city of York. Originally a wapentake or subdivision of the West Riding of Yorkshire it later had a unique status as a rural area controlled by the corporation of the city.