The city had a population of 21,000 in 1640 before a plague in 1649–51 wiped out almost half of the inhabitants. However, the city prospered again soon after as a result of the wool and linen trade with England, and reached a population of over 50,000 in 1700.