German mediatization
At the Peace of Westphalia (1648), the bishops recovered their possessions. In 1802, in the course of the German mediatization, the prince-bishopric was secularized and its territory annexed to Bavaria. From 1808 to 1817 the diocese was vacant; but by the Bavarian Concordat of the latter year it was made an archbishopric, with Würzburg, Speyer, and Eichstädt as suffragan sees.