Niall mac Cernaig Sotal (died 701) was a king in southern Brega of the UàChernaig sept of Lagore of the SÃÂl nÃÂedo Sláine. He was the grandson of the high king Diarmait mac ÃÂedo Sláine (died 665). His father Cernach Sotal had died during plague years in 664.
In Niall's time there was a rivalry between the northern septs of the SÃÂl nÃÂedo Sláine, including the UàChonaing sept of Cnogba (Knowth) and the SÃÂl nDlúthaig of Fir Cúl, with the southern septs which included the UàChernaig. In 688 Niall defeated Congalach mac Conaing Cuirre (died 696) of UàChonaing and his Ciannachta allies at the Battle of Imlech Pich. This battle occurred during the temporary abdication of the high king FÃÂnsnechta Fledach of Brega (died 695) and represents a struggle for control of Brega among the two septs. Finsnechta returned to the throne in 689 only to be assassinated by Congalach in 695 who then assumed the kingship of Brega.
Niall is listed as one of the guarantors of the Cáin Adomnáin ("Law of the Innocents") of Saint Adomnán arranged at the Synod of Birr in 697 where he is called King of Mag Breg. His brother Conall Grant (died 718) is called king of Deiscirt Brega (South Brega) and Niall's son Maine mac Néill (died 712) was also a guarantor. These titles were added to the list of guarantors in 727 and the first use of the title King of South Brega in the Annals of Ulster is not until 751
In 701 Niall was assassinated by the UàChonaing king of Brega, ÃÂrgalach mac Conaing Cuirre (died 702), at Drumain Ua Casan. According to the Fragmentary Annals of Ireland, Niall was under Adomnán's protection and the saint cursed ÃÂrgalach as a result.
Niall's known sons included: