 Ímar 's reign in Dublin spanned at least eight years , from 1038 to <unk> . Although he began by seizing the kingship from Echmarcach in 1038 , he eventually lost it to him in <unk> . As king , Ímar is recorded to have overseen military operations throughout Ireland , and seems to have actively assisted the family of Iago ab <unk> ap <unk> , King of Gwynedd overseas in Wales . After Echmarcach 's final expulsion from Dublin 1052 , Ímar may well have been reinstalled as King of Dublin by Diarmait mac Maíl na mBó , King of Leinster . Whatever the case , Ímar died in 1054 . He may have been an ancestor or close kinsman of Gofraid <unk> , King of Dublin and the Isles , the progenitor of a family that ruled in the Isles until the mid thirteenth century . 
