The last bishop, John of Haugwitz (1555–1581), placed his resignation in the hands of the cathedral chapter, in virtue of an agreement with Elector Augustus of Saxony, went over to Lutheranism, married and retired to the castle of Ruhetal near Mögeln. The electors of Saxony took over the administration of the temporalities of the diocese within the Electorate of Saxony which in 1666 were finally adjudged to them. The canons turned Protestant, and all remaining monasteries in Saxony were secularized, their revenues and buildings being devoted principally to educational works.