Passage: After having fought with Ramiro II of León against the Arabs, and after the Battle of Simancas and the retreat of the Muslims, Fernán was dissatisfied because the king of León distributed his troops in the frontier towns and he rose in rebellion against him.  In 944, the county of Castile was stripped from him and awarded by the king to his son Sancho, with count Ansur Fernández serving as regent. Fernán was defeated and made prisoner for 3 years until he became reconciled with his sovereign, giving his daughter Urraca in marriage to the king's heir, Ordoño, who afterwards became King Ordoño III.

Question: Who married Urraca?
Ordoño