Under the dukes of Bavaria-Landshut (1392-1503), the fortifications were extended around the entire castle hill.
After the reunification of Bavaria in 1505 with the Landshut War of Succession the castle had military importance, and due to the threat of the Ottoman Empire it was subsequently modernised.