The Treaty of Wedmore is a 9th century agreement between King Alfred the Great of Wessex and the Viking king, Guthrum the Old. The only contemporary reference to the treaty is that of a Welsh monk, Asser, in his biography of Alfred, known as Vita Ælfredi regis Angul Saxonum, or "The Life of King Alfred", in which Asser describes how after Guthrum's defeat at the Battle of Edington, followed by his surrender some days later, he agreed to a peace treaty with Alfred. The treaty was conditional on Guthrum's being baptised to endorse the agreement, as well as to allow him to rule more legitimately over his Christian vassals but to remain pagan to his pagan vassals. Also, Guthrum and his army were to leave Wessex.
According to Asser, in his biography of King Alfred, known as Vita Ælfredi regis Angul Saxonum, or "The Life of King Alfred", in 878 Alfred defeated the Viking Great Army at the Battle of Edington. Guthrum, the Viking leader, retreated with the remnants of his army to their "stronghold", where Alfred besieged him.
After fourteen days the Vikings, according to Asser:
Alfred accepted Guthrum's surrender and the Vikings gave Alfred peace hostages:
Three weeks later Guthrum and thirty of his most important men went to Alfred at Aller, near Athelney. There Guthrum was baptised, with Alfred accepting him as his adoptive son. The unbinding of the chrisom, part of a baptismal ritual, took place eight days later at the royal estate and church at Wedmore near Cheddar.
Guthrum adopted the baptismal name of Athelstan. The following twelve days Guthrum and his chiefs stayed with Alfred where they were honoured with gifts and feasting. During the summer of 878, Guthrum's army remained in Chippenham. Then, as agreed Guthrum and his army moved out of Wessex, and travelled the relatively short distance to Cirencester (in the Kingdom of Mercia) and then eventually on to East Anglia.
The Anglo-Saxon Chronicle for 878 has a similar description to Asser. It details Alfred's movements before, during and after the Battle of Edington. It describes Guthrum's surrender, his baptism at Wedmore and the twelve days of celebration. The only reference to an accord at Wedmore is that from Asser's "Life of King Alfred". If there was a formal treaty, contemporary with the events at Wedmore in 878, no such document still exists. A truce was made and, at a later date, a formal treaty was agreed. This one was known as the Treaty of Alfred and Guthrum and it defines the boundaries between Alfred and Guthrum's territories, as well as agreements on peaceful trade and the weregild value of its people. This document still survives and is part of the Laws of Alfred. The treaty is seen as a precursor to the formation of Danelaw.
The Treaty of Wedmore and the Treaty of Alfred and Guthrum have often been confused with each other. It is possible that the Treaty of Wedmore in 878, by which Guthrum had to accept baptism and leave Wessex, was a verbal agreement. The formal, written Treaty of Alfred and Guthrum, dividing up the kingdoms, followed some years later.