After resisting every attempt of the French court to draw him into the antiHabsburg league, Sobieski signed the famous treaty of alliance with the emperor Leopold against the Turks (March 31, 1683), which was the prelude to the most glorious episode of his life, the relief of Vienna and the liberation of Hungary from the Ottoman yoke.
At this time the universities were still agitated by the Liberal and patriotic aspirations aroused by the War of Liberation; at Breslau Leo fell under the influence of Jahn, and joined the political gymnastic association (Turnverein); at Jena he attached himself to the radical wing of the German Burschenschaft, the so-called "Black Band," under the leadership of Karl Follen.
The most significant was the liberation, at the moment of kindling the funeral pyre, of an eagle which was supposed to bear the emperor's soul to heaven.
On his liberation he visited England once more, where he succeeded well at first; but was ultimately outwitted by some English lawyers, and confined for a while in the Fleet prison.
He ordered Fox's liberation, and in November 1657 issued a general order directing that Quakers should be treated with leniency, and be discharged from confinement.