Gofraid mac Amlaíb meic Ragnaill (d. 1075) was a late 11th-century King of Dublin. Although the identities of his father (Amlaíb) and grandfather (Ragnall) are uncertain Gofraid was probably one of the Uí Ímair. He may have been a nephew of Echmarcach mac Ragnaill King of Dublin who was driven from Dublin in 1052 by the Uí Ceinnselaig King of Leinster.