The Arab town, or medina, grew round the alcazar (castle) over a promontory overlooking the Manzanares River. The title Majerit to start with seems in ad 932, when the Christian king Ramiro II of León razed the town’s partitions, but you will discover traces of previously (even prehistoric) habitation. https://sethlgyav.pointblog.net/top-madrid-secrets-67862361