Gessler improved the castle fortifications against the threat of the Swiss Confederacy in the years leading up to the Sempach War, and Grüningen was raided several times by Zürich during the 1370s to 1380s.