It was also in 825 that one of the most important battles in Anglo-Saxon history took place, when Egbert defeated Beornwulf of Mercia at Ellendun—now Wroughton, near Swindon.