It's based on the novels by Bernard Cornwell and in the notes of which he writes that the main events are historically true (Alfred, battle of Ethandun etc.), Uthred and the rest is invented. Bebbanburg is real though, Bamburgh castle in Northumberland.