In 1668 King Jan II Kazimierz appointed John Sobieski the Commander-in-Chief of the Polish army. After a distinguished military career, and following the death of King Jan II Kazimierz's successor, Michael Korybut Wisniowiecki, John Sobieski was elected by the nobility as king of Poland on May 21, 1674.
John Sobieski's military prowess, as exhibited in a war against Turkey, contributed to his election as king of Poland. Later he allied with the Holy Roman Emperor. His greatest success came on September 12, 1683 as victor at the Battle of Vienna, with German and Polish troops, once more against the Turks under Kara Mustafa.
According to Oscar Halecki, noted Polish historical writer, John III planned to occupy Prussia with Swedish cooperation and French support. This undertaking was doomed to failure, because of the war with Turkey, the skillful diplomacy of the Elector of Brandenburg, and the frequent shifts of alliances amongst the western powers.
It is noteworthy that John III came belatedly to the battlefield, but rushed to Vienna in order to receive a hero's welcome, while the Elector of Saxony's German and Austrian troops were still busy on the battlefield tending to their dead and wounded. This may be why John Sobieski's hopes for imperial Habsburg marriages for his children were not fulfilled. His son James married Hedwig Elizabeth Amelia von Pfalz-Neuburg, and James' daughter Maria Clementina married the Duke of Cornwall, the Stuart[?] pretender to the British throne.
In a strange twist of events a statue of John III Sobieski was brought to the city of Gdansk by people from his native land (from L'viv), when they were resettled there. Already John's family had been famous guests in the city. Now the statue overlooks the little park at the the old Gdansk town hall, now a museum.
King John III Sobieski, the last great king of Poland, died in Wilanów[?], Poland on June 17, 1696 . His wife, Marie Casimire, died in 1716 in Blois, France and her body was returned to Poland. They are interred together in Wawel Castle[?], Krakow, Poland.
King John III was succeeded by Augustus II, elector of Saxony who stayed in power primarily because of Russian support. On his death in 1733, a struggle for the crown of Poland ensued, referred to as the "War of the Polish Succession."