 In 1816 it became the property of King Maximilian I Joseph of Bavaria and from that time forward has served as a church of the royal family.In 1817 the Bavarian Field Marshal Prince Wrede bought up the whole monastery, in which a year later a hospital and home for invalid soldiers was opened.In 1828 a prayer room for Protestants was opened in the former chapter room.