The town grew steadily through the Middle Ages and remained prosperous until the end of the 17th century, when the wool industry began to decline.