Wells (/wɛlz/) is a cathedral city and civil parish in Somerset, located on the southern edge of the Mendip Hills, 21 miles (34 km) south-east of Weston-super-Mare, 22 mi (35 km) south-west of Bath and 23 mi (37 km) south of Bristol. Although the population recorded in the 2021 census was only 11,145, and with a built-up area of just 3.244 km (1.253 sq mi), Wells has had city status since medieval times, because of the presence of Wells Cathedral. Often described as England's smallest city, it is actually the second smallest to the City of London in area and population, but unlike London it is not part of a larger urban agglomeration.
Wells takes its name from three holy wells dedicated to Saint Andrew that lie within the grounds of the Bishop's Palace and cathedral and supply water to the marketplace. A small Roman settlement surrounded them, which grew in importance and size under the Anglo-Saxons when King Ine of Wessex founded a minster church there in 704. The community became a trading centre based on cloth making and Wells is notable for its 17th-century involvement in both the English Civil War and the Monmouth Rebellion. In the 19th century, transport infrastructure improved with stations on three different railway lines. However, following the Beeching axe in 1964 the city has been without a railway link.