When the Romans ended their direct rule of Britain early in the fifth century, they left behind a country under attack from the Angles, Saxons and Jutes. Over the next 200 years, these invaders expelled the native Britons from England and pushed them back into Scotland and Wales. The invaders set up kingdoms of their own, and by the early seventh century England was split into the seven warring kingdoms of the Heptarchy. One of these, Wessex, finally triumphed and produced in Egbert, the first King of England.