 The following year , the Annals of Tigernach states that Echmarcach succeeded Ímar . The Annals of the Four Masters specifies that Ímar was driven from the kingship by Echmarcach , who was then elected king by the Dubliners . After this point in Ímar 's life , all that is known for certain is that he died in 1054 , as recorded by the Annals of Ulster and the Annals of Loch <unk> . Nevertheless , since these sources style Ímar in Gaelic <unk> Gall ( " king of the foreigners " ) , there may be evidence to suggest that , when Diarmait mac Maíl na mBó , King of Leinster ( died 1072 ) drove Echmarcach from Dublin in 1052 , Diarmait reinstalled Ímar as king . 
