the half timbered town was enclosed by a bend in the river ; from the top of the mount the norman castle dominated the broad flood plain and protected the surrounding countryside from the threat of a seaward invasion .