From 1109 until 1837, the Isle was under the jurisdiction of the Bishop of Ely who appointed a Chief Justice of Ely and exercised temporal powers within the Liberty of Ely. This temporal jurisdiction originated in a charter granted by King Edgar in 970, and confirmed by Edward the Confessor and Henry I to the abbot of Ely. The latter monarch established Ely as the seat of a bishop in 1109, creating the Isle of Ely a county palatine under the bishop. An act of parliament in 1535/6 ended the palatine status of the Isle, with all justices of the peace to be appointed by letters patent issued under the great seal and warrants to be issued in the king's name. However, the bishop retained exclusive jurisdiction in civil and criminal matters, and was custos rotulorum. A chief bailiff was appointed for life by the bishop, and performed the functions of high sheriff within the liberty, who also headed the government of the city of Ely.