During the 12th and 13th centuries, the town of Devizes developed outside the castle with craftsmen and traders setting up businesses to serve the residents of the castle. The first known market in Devizes was in 1228. The original market was in the large space outside St Mary's Church, rather than in the current Market Place, which at that time would have been within the castle's outer bailey. The chief products in the 16th and early 17th centuries were wheat, wool and yarn, with cheese, bacon and butter increasing in importance later.