 Wartenberg was made cardinal in 1660 and was succeeded by the married Protestant bishop, Ernest Augustus, Elector of Hanover (1661–98), who largely resided in Hanover.He built the new palace in Osnabrück from 1667 and was succeeded by the Catholic bishop, Prince Charles Joseph of Lorraine.The Protestant bishop Ernest Augustus (1715–28), second son of the previous Ernest Augustus, was succeeded by Clemens August of Bavaria, Archbishop-Elector of Cologne (1728–61).