In order to understand the origin of San Martín, it is necessary to make reference to the monastery of Santa María de Melque, which has traditionally been regarded as a church from the 9th century Moorish-style, but the latest archaeological research are shown that the Church sits on an ancient monastic Center of Visigothic period.
The Church of Santa María de Melque is built in granite Ashlar masonry of unequal size, with Greek cross and unequal arms plant. Later we were adding a series of rooms, one on each side of the apse and another at the foot of! Cruise.
With the Islamic conquest this enclave is destroyed and reused as a watch tower to control the passage of the road that crosses the river Tagus by La Puebla de Montalbán. To complement this defense, maybe there was a fortress located on the present enclave of the castle of Montalban.
King Alfonso VII donated the domain and Montalban Castle to the Templars, at the end of the first third of the 12th century, remaining under this property until 1308, date in which the King Fernando IV kidnapped goods possessing the Temple in their States.
Castle and encomienda remained for some years subject to the Crown, until Alfonso XI made donation of them to Don Alfonso Fernández Coronel.
In 1437 it passed into the hands of the Constable Álvaro de Luna to after his beheading, is inherited by his daughter Luna María mentored by his mother Juana Pimentel, who starred in the showdown against King Enrique IV.
Finally, Enrique IV gives the Puebla valid Juan Pacheco, who makes a Majorat in 1467, La Puebla de Montalbán, giving him his third son Alonso Tellez de Girón.
In all this time he was developing a repopulation of the area, favored by the actions of different owners in the area who with the passage of the Mesta cattle revenues not repaired to increase taxes to its people, progressively increasing the population in the area.
The Modena age begins in the manor with the Foundation of the place of San Martin, which is explained in the relationship of the Puebla de rode, made in 1576.
San Martín was founded by the year 1531. Feudal lords Alonso Téllez and his son sold to residents of this jurisdiction twenty thousand bushels of public mount so they out them and simultaneously limit the freedom of pastors and beekeepers. In 1665 Gets the privilege of villa given by Felipe IV, exempting the management of the Puebla, villa of the lordship of the Dukes of Uceda.