Haarlem is a city and municipality in the Netherlands. It is the capital of the province of North Holland and is situated at the northern edge of the Randstad, one of the most populated metropolitan areas in Europe. Haarlem had a population of in.Haarlem was granted city status or stadsrechten in 1245, although the first city walls were not built until 1270. The modern city encompasses the former municipality of Schoten as well as parts that previously belonged to Bloemendaal and Heemstede. Apart from the city, the municipality of Haarlem also includes the western part of the village of Spaarndam. Newer sections of Spaarndam lie within the neighbouring municipality of Haarlemmerliede en Spaarnwoude.GeographyThe city is located on the river Spaarne, about 20 km (12 mi) west of Amsterdam and near the coastal dunes. It has been the historical centre of the tulip bulb-growing district for centuries and bears the nickname 'Bloemenstad' (flower city), for this reason.