The Kings of Ui Fiachrach Muaidhe were the northern branch of Ui Fiachrach, based on the plain of the Muaidhe (valley of the River Moy). The early members of the dynasty were Kings of Connacht, but were eclipsed by the Ui Briuin by the 8th century. By the 12th century the ruling dynasty adopted the surname Ó Dubhda