Born in Burgos, Urraca was the eldest and only surviving child of Alfonso VI of León with his second wife Constance of Burgundy; for this, she was heir presumptive of the Kingdoms of Castile and León until 1107, when her father recognized his illegitimate son Sancho as his heir.