 In 1515, during a congress in Vienna, a dynastic succession arrangement was agreed to between Maximilian I, Holy Roman Emperor and the Jagiellon brothers, Vladislas II of Bohemia and Hungary and Sigismund I of Poland and Lithuania.It was supposed to end the Emperor's support for Poland's enemies, the Teutonic and Russian states, but after the election of Charles V, Maximilian's successor in 1519, the relations with Sigismund had worsened.The Jagiellon rivalry with the House of Habsburg in central Europe was ultimately resolved to the Habsburgs' advantage.