Ghent

The city was surrounded by walls with four gates.

An excerpt from the article 44 facts about Ghent

The city was granted the privilege of a storehouse, which ordered any merchant passing through Ghent with grain to set aside 1/4 of his cargo for sale at the nearby grain market (Korenmarkt). The city grew rapidly richer, and its political importance increased. The Gravensteen fortress was then built (1180), not to defend the city, but to protect the count from rebellious craftsmen.