Ferdinand IV., king of Castile and Leon, son of Sancho IV., born in Seville in 1285, died in 1312. He was only ten years old when his father died, and he saw himself assailed at once by his uncle Enrique, who coveted the regency, by Don Juan Nunez de Lara, who wanted to increase his estates, and by the infantes of La Cerda, who claimed the crown, and who, respectively aided by the kings of Portugal and Aragon, aimed at a partition of the kingdom. In these difficult circumstances the young king was sustained by the ability of his mother, Maria de Molina. She succeeded in dividing his enemies, conciliated the king of Portugal, whose daughter Constanza was married to Ferdinand, and also made an alliance with the king of Aragon. Ferdinand in 1305 made war upon the Mohammedans, gained advantages over them, and took Gibraltar (1309). The order of templars having been abolished by Clement V., he confiscated their property and shared their spoils with the other orders of chivalry. There is a legend that in an expedition against the Moors, having ordered the two brothers Carvajal to be put to death upon mere suspicion, they cited him to appear with them in 30 days before the judgment seat of God; and within the prescribed time he was found dead on his couch, on which he had been taking his siesta.