 The castle served then also as a residence for his consort Matilda of Habsburg.The present building dates mainly from the late 15th century, when the castle was renovated to celebrate the wedding of Albert IV, Duke of Bavaria with Kunigunde of Austria, a daughter of emperor Frederick III.The construction work was carried out 1486–87 under the direction of the foreman Jörg Weikertshausen.