All the children of King Ferdinand I, according to the "Historia silense", were educated in the liberal arts, and the sons were also trained in arms, the "art of running horses in the Spanish usage", and hunting. The cleric Raimundo was in charge of Alfonso's early education. Once king, Alfonso appointed him Bishop of Palencia and referred to him as "magistro nostro, viro nobile et Deum timenti" ("our master, a noble man who fears God"). Alfonso probably spent long periods in Tierra de Campos, where, along with Pedro Ansúrez, the son of Ansur Díaz and nephew of Count Gómez Díaz de Saldaña (both members of the Banu Gómez lineage), he learned the art of war and what was expected of a knight.