On the initiative and financial support of Pope Innocent XI, the Holy Roman Emperor, the King of Poland and the Republic of Venice sent 80,000 troops into Buda, and Hungary. The army was composed of Saxon, Bavarian, Brandenburg and Swedish troops, with lesser numbers of Italy, England, France and Spain, and some 15,000 Hungarians. The armies were led by Prince Charles of Lorraine, Bavarian Elector Maximilian II Emanuel, Margrave of Baden Louis William and Prince Eugene of Savoy, all eminent military leaders of the time.