Despite numerous battles, neither the Umayyads nor the Asturians had sufficient forces to secure control over these northern territories. Under the reign of Ramiro, famed for the highly legendary Battle of Clavijo, the border began to slowly move southward and Asturian holdings in Castile, Galicia, and Leon were fortified, and an intensive program of re-population of the countryside began in those territories. In 924 the Kingdom of Asturias became the Kingdom of Leon, when Leon became the seat of the royal court (it didn't bear any official name).