What was the reason of the Battle of Hastings?

The reason for the battle of hasting was to see who the next king of England would be after the first one died they solved the problem by fighting to the death of one that's what they did in the old days