Muirchertach Ua Briain (
c. 1050–
c. 1119) was both
King of Munster and
High King of Ireland. He was of the
Dál gCais dynasty, and a great-great grandson of
Brian Boru (
c. 937–1014). Muirchertach became seriously ill in 1114, and his rule suffered as a result. Dissension between him and his brother, Diarmaid,
Dux of Cork, was exacerbated by hostilities from other major Irish kingdoms such as
Connacht,
Aileach and
Leinster. This gave Ua Briain vassals, such as the Mac Carthaigh brothers, the chance to assert their independence. Tadhg Mac Carthaigh was the effective ruler of south-west Munster in 1118 when the sons of
Diarmaid Ua Briain fled from the new king,
Brian Ua Briain. In an attempt to suborn Mac Carthaigh, Ua Briain engaged him and his army at
Glanmire but was defeated; he himself was killed by Turlough mac Diarmaid. News of the defeat roused Muirchertach from his retirement, regaining the kingship of Munster and led a large army south, accompanied by his allies, the kings of
Connacht,
Mide, and
Breifne. However, the most powerful of the kings,
Tairrdelbach Ua Conchobair (1088–1156) found it expedient for his own purposes to keep Munster divided, so he made
"an enduring treaty" with Tadhg, formally recognising him as the first King of Desmond, while the sons of Diarmaid Ua Briain were given
Thomond. With Munster divided into two separate kingdoms, Toirdelbach became the only contender for
High King of Ireland, a position he held with opposition till his death in 1156. When Tadhg rebelled, Toirdelbach invaded and ravaged Desmond in 1121, 1122 and 1123. At the end of the latter year, Tadhg became seriously ill; before his death, he resigned the kingship and Cormac took his place. ==King of Desmond==