It was the southern of the two kingdoms of Deira and Bernicia which later merged to form the kingdom of Northumbria .
King Athelfrith of Bernicia united the kingdoms of Deira and Bernicia into Northumbria .