Dorset was initially part of Saxon Wessex, with the first record of Dorset being in 841. Coenred, the sub-king of Dorset at the end of the 7th century, was father of King Ine. St Martin's church at Wareham is reputedly the oldest in Dorset but there were many other Saxon foundations including Shaftesbury Abbey and Sherborne Monastery. King Ethelred I (866-871) is buried at Wimborne, while St Cuthberga, abbess of Wimborne, died in 725. Gillingham is first mentioned in a 10th-century charter.