It is through Princess Anghared (as daughter of Maredudd ab Owain of Deheubarth and Powys), her second husband was Cynfyn ap Gwerstan, that the Mathrafal dynasty was founded. The dynasty takes its name from the historic seat of Mathrafal Castle. Anghared's son Bleddyn ap Cynfyn would inherit Powys in 1063 on the death of his maternal half-brother Gruffydd ap Llywelyn. Bleddyn (the name means wolf in Welsh) secured Gwynedd in 1063 after a battle with the Aberffraw claimant Cynan ap Iago, with Edward the Confessor of England endorsing Bleddyn's seizure later that year. Additionally, Bleddyn is recorded as amending the Law Codes of Hywel Dda.
