 A document of 1058 dates itself "in the time of the most serene prince Lord Ferdinand and his consort Queen Sancha" and later qualifies him as "this emperor, the aforesaid Ferdinand".After becoming ill during the Siege of Valencia and the Battle of Paterna, Ferdinand died on 24 December 1065, in León, with many manifestations of ardent piety, having laid aside his crown and royal mantle, dressed in the robe of a monk and lying on a bier covered with ashes, which was placed before the altar of the Basilica of San Isidoro.By his will, Ferdinand divided his kingdom among his three sons