Malmesbury (/ˈmɑː(l)mzbəri/) is a town and civil parish in north Wiltshire, England, which lies approximately 14 miles (23 km) west of Swindon, 25 miles (40 km) northeast of Bristol, and 9 miles (14 km) north of Chippenham. The older part of the town is on a hilltop which is almost surrounded by the upper waters of the Bristol Avon and one of its tributaries.
Once the site of an Iron Age fort, in the early medieval period Malmesbury became the site of Malmesbury Abbey, a monastery famed for its learning. It was later home to one of Alfred the Great's fortified burhs for defence against the Vikings. Æthelstan, the first king of all England, was buried in the abbey when he died in 939. As a market town, it became prominent in the Middle Ages as a centre for learning, focused on and around the abbey.