Mathrafal near Welshpool, in Powys, Mid Wales, was the seat of the Kings and Princes of Powys probably from the 9th century until its destruction in 1212 by Llywelyn ap Iorwerth of Gwynedd.
Eventually, a cadet branch of Dinefwr would establish itself in Powys by the mid 11th century, designated Mathrafal after the castle there.
The house of Mathrafal was effectively established in the wake of Harold and Tostig Godwinson's disastrous raids in 1062 and 1063.