Answer
The answer is 17th century. John III Sobieski was the King of Poland and Grand Duke of Lithuania from 1674 until his death in 1696. Sobieski's reign was marked by a series of successful military campaigns against the Ottoman Empire and the Cossacks, most notably the Battle of Vienna in 1683, which prevented the conquest of Central Europe by the Ottoman Turks.