Late in his life Frederick also involved Prussia in the smaller War of the Bavarian Succession in 1778, in which he stopped Austrian attempts to exchange the Austrian Netherlands for Bavaria. When Emperor Joseph II| tried the scheme again in 1784, Frederick created the "Fürstenbund", making Germans see him as a defender of German liberties, in contrast to his earlier role of attacking the imperial Habsburgs.