Devizes (dᵻˈvaɪzᵻz) is a market town and civil parish in Wiltshire, England. It developed around Devizes Castle, an 11th-century Norman castle, and received a charter in 1141. The castle was besieged during the Anarchy, a 12th-century civil war between Stephen of England and Empress Matilda, and again during the English Civil War when the Cavaliers lifted the siege at the Battle of Roundway Down. Devizes remained under Royalist control until 1645, when Oliver Cromwell attacked and forced the Royalists to surrender. The castle was destroyed in 1648 on the orders of Parliament, and today little remains of it.
From the 16th century Devizes became known for its textiles, and by the early 18th century it held the largest corn market in the West Country, constructing the Corn Exchange in 1857. In the 18th century, brewing, curing of tobacco, and snuff-making were established. The Wadworth Brewery was founded in the town in 1875.
Standing at the west edge of the Vale of Pewsey, the town is about southeast of Chippenham and north-east of the county town of Trowbridge. It has nearly five hundred listed buildings, some notable churches, a town hall and a green in the centre.
Devizes Castle was built by Osmund, Bishop of Salisbury in 1080, but the town is not mentioned in the Domesday Book. Because the castle was on the boundaries of the manors of Rowde, Bishops Cannings and Potterne it became known as the castrum ad divisas ("the castle at the boundaries"), hence the name Devizes. On John Speed's map of Wiltshire (1611), the town's name is recorded as The Devyses. The first castle on the site was of the motte and bailey form and was probably made of wood and earth, but this burnt down in 1113.
A new castle was built in stone by Roger of Salisbury, Osmund's successor. Devizes received its first charter in 1141 permitting regular markets. The castle changed hands several times during the Anarchy, a civil war between Stephen of Blois and Matilda in the 12th century. The castle held important prisoners, including (from 1106) Robert Curthose, eldest son of William the Conqueror.