The Municipal Corporations Act 1835 reformed the city of York as a municipal borough with effect from 1 January 1836. It was unclear if the reformed corporation still had jurisdiction in the Ainsty. The matter was finally settled by the Municipal Corporation (Boundaries) Act 1836, which came into force in August. Under the legislation the Ainsty was declared to be part of the West Riding for all purposes. When elected county councils were created by the Local Government Act 1888, the Ainsty's inclusion in the West Riding was confirmed.