 It is believed that the purpose of the walls were to protect the Lord of Glamorgan's burgage plots (rental property) and to provide a way of collecting tolls from the town's market, held twice-weekly.The wall originally had four gates.The North is believed to have been to first to be removed, before the 18th century, followed by the West Gate in 1754 and the East Gate in 1771.