Mathrafal, north-west of Welshpool, remained the seat of the princes of Powys until the beginning of the thirteenth century.