In 1683, the Ottoman forces were beaten back from Vienna a second time and eventually, in the Great Turkish War (1683–1699), pushed back beyond Belgrade. When the main (Spanish) line of the Habsburgs died out in 1700, it precipitated the War of the Spanish Succession (1701–1714) between the Habsburgs and King Louis XIV of France. Subsequently, Austria gained control, through the 1713 Treaty of Utrecht, of the Spanish Netherlands, Naples and Lombardy.