John III Sobieski was King of Poland and Grand Duke of Lithuania from 1674 until his death in 1696.
Source: Wikipedia