San Martín was born in Palencia (in modern-day Castile-Leon). In his youth, he was inspired by the ideals of medieval chivalry. Later he entered in the convent of San Pablo de Córdoba and became professor of arts and theology where he gained the reputation as a prolific scholar. He was sent to Seville to attend the Saint Thomas College.
