The Old Gaol was ordered to be built in June 1330, making it the oldest purpose-built prison in England. Prisons existed before this, but were generally adapted from buildings originally used for other purposes.