War of the Bavarian Succession
The unloved young empress played a role in her husband's life once more after her death, when he laid claim to a large part of Bavaria in 1778–1779. He based his claim on, among other grounds, his marriage to his Bavarian second wife. This conflict eventually grew into the War of the Bavarian Succession. In the end, the Habsburg dynasty gained only the Innviertel.