The Arab town, or medina, grew around the alcazar (castle) with a promontory overlooking the Manzanares River. The name Majerit to start with appears in ad 932, when the Christian king Ramiro II of León razed the city’s partitions, but you can find traces of earlier (even prehistoric) habitation. https://tarot-del-amor43108.dailyblogzz.com/27320417/madrid-no-further-a-mystery