Haarlem instance of place with town rights and privileges
Middle Ages
The oldest mentioning of Haarlem dates from the 10th century. The name probably comes from "Haarlo-heim". This name is composed of three elements: haar, lo and heim. There is not much dispute about the meaning of lo and heim; in Old Dutch toponyms lo always refers to 'forest' and heim (heem, em or um) to 'home' or 'house'. Haar, however, has several meanings, one of them corresponding with the location of Haarlem on a sand dune: 'elevated place'. The name Haarlem or Haarloheim would therefore mean 'home on a forested dune'.
There was a stream called "De Beek", dug from the peat grounds west of the river Spaarne as a drainage canal. Over the centuries the Beek was turned into an underground canal, as the city grew larger and the space was needed for construction. Over time it began to silt up and in the 19th century it was filled in. The location of the village was a good one: by the river Spaarne, and by a major road going south to north. By the 12th century it was a fortified town, and Haarlem became the residence of the Counts of Holland.
In 1219 the knights of Haarlem were laurelled by Count Willem I, because they had conquered the Egyptian port of Damietta (or Damiate in Dutch, present-day Dimyat) in the fifth crusade. Haarlem received the right to bear the Count's sword and cross in its coat of arms. On 23 November 1245 Count Willem II granted Haarlem city rights. This implied a number of privileges, among which the right for the sheriff and magistrates  to administer justice, instead of the Count. This allowed for a quicker and more efficient judiciary system, more suited to the needs of the growing city.
After a siege from the surrounding area of Kennemerland in 1270 a defensive wall was built around the city. Most likely this was an earthen wall with wooden gates. Originally the city started out between Spaarne, Oudegracht, Ridderstraat, Bakenessergracht and Naussaustraat. In the 14th century the city expanded, and the Burgwalbuurt, Bakenes and the area around the Oudegracht became part of the city. The old defenses proved not to be sufficiently strong for the expanded city, and at the end of the 14th century a 16½-metre high wall was built, complete with a 15-metre wide canal circling the city. In 1304 the Flemish threatened the city, but they were defeated by Witte van Haemstede at Manpad.
type of example of manifestation of representation of