The rivalry between Saxony and Brandenburg (after 1701 the kingdom of Prussia) was a decisive factor in later Saxon history, as was the election in 1697 of Augustus II (who was Frederick Augustus I as Elector of Saxony) as King of Poland; the election led to an economic partnership between the declining Poland and Saxony, whose prestige was thereby diminished. In the War of the Austrian Succession, Saxony adhered to what had become its traditional wavering policy, changing sides in the middle of the conflict. The death in 1763 of Augustus III ended the union with Poland.