Trahaearn ap Caradog (died 1081) was a King of Gwynedd.
On the death of Bleddyn ap Cynfyn in 1073, it appears that none of his sons were old enough to claim the throne, and Bleddyn's cousin Trahaearn ap Caradog, seized power. The family is thought to have originated in Arwystli, on the border between Gwynedd and Powys.
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 Llyn and Trahaearn took the opportunity to counterattack, defeating Gruffudd at the Battle of Bron yr Erw at Clynnog Fawr in Caernarfonshire, also in 1073, forcing him to flee back to Ireland.
In 1078 Caradog ap Gruffydd (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 Gruffydd 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 taken power of Deheubarth becoming its king. Rhys ap Tewdwr was forced to flee when Caradog ap Gruffydd invaded Deheubarth in 1081. He sought protection in St David's Cathedral at the far southwestern corner of his kingdom.