Wells is a small cathedral city and civil parish in the Mendip district of Somerset, England, on the southern edge of the Mendip Hills. Although the population, recorded in the 2001 census, is only 10,406, it has had city status since 1205. This was confirmed and formalised by Queen Elizabeth II by letters patent issued under the Great Seal dated April 1, 1974. It is the second smallest city in England, following the City of London, though St Davids in Wales is the smallest city in the UK.
The City was a Roman settlement but only became an important centre under the Saxons when King Ine of Wessex founded a minster church in 704. Two hundred years later, this became the seat of the local Bishop; but in 1088, this had been removed to Bath. This caused severe arguments between the canons of Wells and the monks of Bath until the bishopric was renamed as the Diocese of Bath and Wells, to be elected by both religious houses. Wells became a borough some time before 1160 when Bishop Robert granted its first charter. Fairs were granted to the City before 1160.
During the English Civil War, Parliamentarian troops used the Cathedral to stable their horses and damaged much of the ornate sculpture by using it for firing practice. William Penn stayed in Wells shortly before leaving for America, spending a night at The Crown Inn. Here he was briefly arrested for addressing a large crowd in the market place, but released on the intervention of the Bishop of Bath & Wells.
During the Monmouth Rebellion the rebel army attacked the Cathedral in an outburst against the Established Church and damaged the West front. Lead from the roof was used to make bullets, windows broken, the organ smashed and their horses stabled in the nave. Wells was the final location of the Bloody Assizes on September 23, 1685. In a makeshift court lasting only one day, over 500 men were tried and the majority sentenced to death.
Wells has had three railway stations. The first station, Priory Road, opened in 1859 and was on the Somerset Central Railway (later the Somerset and Dorset Joint Railway) as the terminus of a short branch from Glastonbury. A second railway, the East Somerset, opened a branch line from Witham in 1862 and built a station to the east of Priory Road. In 1870, a third railway, the Cheddar Valley line branch of the Bristol and Exeter Railway from Yatton, reached Wells and built yet another station, later called Tucker Street. Matters were somewhat simplified when the Great Western Railway acquired both the Cheddar Valley and the East Somerset lines and built a link between the two that ran through the S&DJR's Priory Road station. In 1878, when through trains began running between Yatton and Witham, the East Somerset station closed, but through trains did not stop at Priory Road until 1934. Priory Road closed to passenger traffic in 1951 when the S&DJR branch line from Glastonbury was shut, though it remained the city's main goods depot. Tucker Street closed in 1963 under the Beeching Axe, which closed the Yatton to Witham line to passengers. Goods traffic to Wells ceased in 1964. A Pacific [[SR West Country, West Country Class steam locomotive no 34092 built by the British Railways Board was named "City of Wells" following a ceremony in the city's Priory Road station in 1949. It was used to draw the Golden Arrow service between London and the Continent. It was withdrawn from service in 1964, and rescued from a scrapyard in 1971. It is now undergoing a complete restoration on the Keighley and Worth Valley Railway in Yorkshire.