end of her second marriage to Ecgfrith, a prince of Northumbria, in 673 she set up and ruled as abbess a dual monastery at Ely for men and for women. When she died, a shrine was built there to her memory. This monastery is recorded as having been destroyed in about 870 in the course of Danish invasions. However, while the lay settlement of the time would have been a minor one, it is likely that a church survived there until its refoundation in the 10th century. The history of the religious community during that period is unclear, but accounts of the refoundation in the tenth century suggest that there had been an establishment of secular priests. In the course of the revival of the English church under Dunstan, Archbishop of Canterbury, and Aethelwold, Bishop of Winchester, a new Benedictine abbey for men was established in Ely in 970. This was one of a wave of monastic refoundations which locally included Peterborough and Ramsey. Ely became one of the leading Benedictine houses in late Anglo-Saxon England. Following the Norman conquest of England in 1066 the abbey allied itself with the local resistance to Norman rule led by Hereward the Wake. The new regime having established control of the area, after the death of the abbot Thurstan, a Norman successor Theodwine was installed. In 1109 Ely attained cathedral status with the appointment of Hervey le Breton as bishop of the new diocese which was taken out of the very large diocese of Lincoln. This involved a division of the monastic property between the bishopric and the monastery, whose establishment was reduced from 70 to 40 monks, headed by a prior; the bishop being titular abbot. In 1539, during the Dissolution of the Monasteries, the monastery surrendered to Henry VIII's commissioners. The cathedral was refounded by royal charter in 1541 with the former prior Robert Steward as dean and the majority of the former monks as prebendaries and minor canons, supplemented by Matthew Parker, later Archbishop of Canterbury, and Richard Cox, later Bishop of Ely. With a brief interruption from 1649 to 1660 during the Commonwealth, when all cathedrals were abolished, this foundation has continued in its essentials to the twenty-first century, with a reduced number of residentiary canons now supplemented by a number of lay canons appointed under a Church Measure of 1999. As with other cathedrals, Ely's pattern of worship