Gospatric or Cospatric (from the Cumbric "Servant of Saint Patrick"), (died after 1073), was Earl of Northumbria, or of Bernicia, and later lord of sizable estates around Dunbar. While his paternal ancestry is uncertain, his descendants held the Earldom of Dunbar, later known as the Earldom of March, in south-east Scotland until 1435.
Gospatric was a great-grandson of Æthelred II through his mother, Ealdgyth, and his maternal grandmother, Ælfgifu, who had married Uchtred the Bold.
He is often said to have been a son of Maldred son of Crínán of Dunkeld. If this is correct, Maldred was apparently not the son of Crínán's known wife Bethóc, daughter of the Scots king Malcolm II, as Gospatric's descendants made no such claim when they submitted their pleadings in the Great Cause (though according to this link his descendant, Patrick the Seventh Earl of Dunbar, did indeed make a claim to the throne during these pleadings) to determine the succession to the kingship of the Scots after the death of Alexander III in 1286.
Alternatively, rather than being descended from a half-brother of King Duncan I (Donnchad mac Crínáin), Gospatric may have been the youngest son of Earl Uhtred the Bold (died 1016). Another reconstruction would make Gospatric the grandson of Uhtred's discarded first wife, Ecgfritha, daughter of Aldhun, Bishop of Durham, through Sigrida, her daughter with Kilvert son of Ligulf. Whatever his parentage may have been, Gospatric was clearly an important figure in Northumbria and Cumbria, with ties to the family of Earl Uchtred.