Writer Ramón de Mesonero Romanos, found the first references to the suburb of San Martín as one of the first suburbs of the city around the year 1126, placing it on the outskirts of the Шаблон:Ill.Шаблон:Sfn
The founding of the arrabal, as a small pueblo, was prompted by the founding of the Benedictine Шаблон:Interlanguage link, a MozarabicprioryШаблон:Sfn subject to the Abbey of Santo Domingo de Silos and originally outside the town of Madrid and its authority.[2] This is clear from the text of the "municipal charter" granted in 1126 by Alfonso VII of Castile to the prior of the vicus Sancti Martini similar to the privileges granted to the convents of Silos and Sahagún.[2] The charter granted the prior civil, criminal and ecclesiastical jurisdiction, both within of the abbey as on the inhabitants of the arrabal.[lower-alpha 1]Шаблон:Sfn In 1295 Sancho IV of Castile confirmed the privileges of the monastery, until between 1465 and 1480 the entire dependent population was integrated into the jurisdiction of the Шаблон:Ill.[2]
In the middle of the 16th century, the aforementioned monastery of the Descalzas Reales, next to the Monastery of Saint Martin, built in 1559 by the architect Шаблон:Ill, on the site previously occupied by an old palace.Шаблон:Sfn
↑Every settler was subject to the authority of the prior of the Шаблон:Interlanguage link and none of its inhabitants could build a house or cultivate a field without his permission. Residents were free to leave but only by selling their inheritance, with the convent holding the first right of refusal.