The geographical division of the United Kingdom into counties or shires began in England and Scotland in the early Middle Ages and was complete throughout Great Britain and Ireland by the early Modern Period. Administrative arrangements were developed separately in each country of the United Kingdom, with origins which often predated the formation of the United Kingdom. Modern local government by elected councils, partly based on the ancient counties, was introduced separately: in England and Wales in a 1888 act, Scotland in a 1889 act and Ireland in a 1898 act, meaning there is no consistent system of administrative or geographic demarcation across the United Kingdom.