Uí Máil were an Irish dynasty of Leinster. They were descended from Maine Mál, the brother of the legendary high king Cathair Mór. The Uí Máil were a dominant dynasty in Leinster competing for the kingship in the 7th century before being eventually ousted by the Uí Dunlainge and retreating east from the River Liffey plain in the 8th century. They are then found along the western foothills of the Wicklow Mountains. The Glen of Imaal, named for them, appears to have been a center of their power.