Cairbre Nia Fer (also Corpri, Coirpre, Cairpre; Nioth Fer, Niafer, Niaper), son of Rus Ruad, was, according to medieval Irish legend and historical tradition, a King of Tara from the Laigin.
The earliest reference to Cairbre is in TÃÂrechán's Memoir of Saint Patrick, a 7th-century Latin text found in the Book of Armagh. Patrick finds an enormous grave and raises its giant occupant from the dead. The giant says he was killed by the sons of Mac Con during the reign of Cairbre Nia Fer, a hundred years previously – i.e. in the 4th century. Another early reference is in the annotations to the 7th-century Amra Choluim Chille (eulogy of Colm Cille) by Dallán Forgaill. Here, the saint's mother Eithne is said to be a descendant of Cairbre, and Cairbre a descendant of Cathair Mór.
The 11th century Lebor Gabála ÃÂrenn places him during the reign of the High King Eterscél, which it synchronises his reign with that of the Roman emperor Augustus (27 BC - AD 14) and the birth of Christ, and makes him a contemporary of the provincial kings Conchobar mac Nessa of the Ulaid, Cú Roàof Munster and Ailill mac Máta of Connacht. Mac Con of the Dáirine, placed a generation before Cairbre by TÃÂrechán, is dated many generations after him, to the late 2nd century, in the Lebor Gabála, while Cathair Mór, his ancestor in the Amra Choluim Chille, is placed many generations later.
Alongside Conchobar, Cú Roàand Ailill, Cairbre appears as king of Tara in stories of the Ulster Cycle, where he is the brother of Ailill mac Máta, husband of Medb of Connacht. His wife is Fedelm NoÃÂchrothach, daughter of Conchobar, and they have a son, Erc, and a daughter, Achall. In Cath Ruis na RÃÂg ("The Battle of Rosnaree"), he and his brother Find mac Rossa, king of the Gailióin of Leinster, fight a battle against Conchobar and the Ulaid. The Ulaid hero Cúchulainn kills him with a spear from distance, then decapitates him before his body hits the ground.
After the Ulaid win the battle, Cairbre's son Erc swears allegiance to Conchobar, marries Cúchulainn's daughter Finnscoth, and becomes king of Tara in his father's place.
Erc is later part of the conspiracy to kill Cúchulainn. After avenging Cúchulainn, Conall Cernach brings Erc's head back to Tara, where Achall dies of grief for her brother.