On the death of
Bleddyn ap Cynfyn in 1075, it appears that none of his sons were old enough to claim the throne, and Bleddyn's cousin Trahaearn ap Caradog, seized power. The same year
Gruffudd ap Cynan landed on
Anglesey with an
Irish force and, with the assistance of the
Norman Robert of Rhuddlan, defeated Trahaearn at the
Battle of Gwaed Erw in
Meirionnydd, gaining control of Gwynedd. However tension between Gruffudd ap Cynan's Irish bodyguard and the local
Welsh people led to a rebellion in
Llŷn and Trahaearn took the opportunity to counterattack, defeating Gruffudd at the
Battle of Bron yr Erw at
Clynnog Fawr, also in 1075, forcing him to flee back to Ireland. In 1078
Caradog ap Gruffudd (Prince of the
Kingdom of Gwent) killed
Rhys ab Owain of
Deheubarth, who had been responsible for the killing of Bleddyn ap Cynfyn, in the
Battle of Gwdig or
Battle of Goodwick. Caradog ap Gruffudd wanted to take control of Deheubarth like his father and grandfather had done. However
Rhys ap Tewdwr, Rhys ab Owain's second cousin, meanwhile had become king of Deheubarth. Rhys ap Tewdwr was forced to flee when Caradog ap Gruffudd invaded Deheubarth in 1081. He sought protection in
St Davids at the far southwestern corner of his kingdom. == Downfall and death ==