In the 6th century the site became part of the Saxon kingdom of Wessex, following the defeat of the Romano-British at the Battle of Beranburgh, Beran Byrig or Beranbyrig in AD 556, the site of which is just north of the castle.