Anglo-Saxon England refers to the period of the history of the part of Britain that became known as England , lasting from the end of Roman occupation and establishment of Anglo-Saxon kingdoms in the 5th century until the Norman conquest of England in 1066 by William the Conqueror .