For 10 points, name this King of the Polish-Lithuanian Commonwealth, dubbed the "Lion of Lechistan" by the Ottomans for relieving the 1683 Siege of Vienna.
This man's enemies included Michal Pac, who sabotaged his plan for the conquest of Prussia, and Jerzy Lubomirski, who defeated his army at the Battle of Matwy. This man gained a firm grasp of the Tatar language and Ottoman military tactics while serving in Istanbul as an envoy of John II Casimir, which were useful as he commanded Tatar cavalry to help Casimir during the Deluge. This also enabled him to defeat the Ottomans at the Battles of Podhajce and Chocim. This man's desire to strengthen the border in Ukraine caused him to join the Holy League of Pope Innocent XI, which brought about this man's best-known action.  That action was an attack of "winged hussars" down the Kahlenberg mountain in support of the forces of Ernst von Starhemberg, which routed the army of Kara Mustafa Pasha. For 10 points, name this King of the Polish-Lithuanian Commonwealth, dubbed the "Lion of Lechistan" by the Ottomans for relieving the 1683 Siege of Vienna.
This man's enemies included Michal Pac, who sabotaged his plan for the conquest of Prussia, and Jerzy Lubomirski, who defeated his army at the Battle of Matwy.
John Sobieski or John III [accept Jan for "John"; accept Jonas Sobieskis from Lithuanians; prompt on partial answers]