His father, Æthelwulf, died when Alfred was about 10 years old, and the crown went in turn to three of Alfred's brothers, Æthelbald, Æthelberht and Æthelred, before Alfred was crowned in April 871.
His chief task as king was fighting off invasions by Viking. In 878, after the decisive Battle of Edington against Guthrum, Alfred made an agreement with the Vikings, granting to them northern England, the north-east Midlands, and East Anglia (an area that became known as the Danelaw) in exchange for leaving the rest of Great Britain safe from invasion. Alfred also convinced Guthrum to convert to Christianity, whereupon he was baptized with the name Athelstan.
This attempt at peace did not last. Alfred was forced to deal with more Danish incursions. In 885 there was a raid on Kent, an ally of Alfred in south-east England. The Danes besieged Rochester, whereupon Alfred gathered a large that caused the Danes to abandon Rochester and flee to their ships. A year later, Alfred reoccupied the city of London (which was not as important as it became later), rebuilding the Roman wall and making the city safe for habitation and trade again.
In that same year he was named King of the Anglo-Saxons. Contemporary chronicles claim that all Saxon kingdoms of the time recognized him as ruler. This unification of the Anglo-Saxons did not mean all things were going well. Guthrum-Athelstan passed away in 889, and the uneasy peace that had been brokered between him and Alfred began to dissolve. Alfred's kingdom was about to become embroiled in frequent battle with Vikings again. We'll look at the latter years of his reign tomorrow.