 In 1678, anti-Habsburg revolutionaries led by Imre Thököly and aided by Louis XIV of France and the Ottomans rose in uprising against the Habsburgs.After the failed Battle of Vienna in 1683, Thököly lost support and was defeated in 1685.Around 1700, Louis XIV reached out again, this time to Francis II Rákóczi, in his attempt to mitigate Austrian power.