War of the Polish Succession
The kingdom was conquered by a Spanish army in 1734, during the War of the Polish Succession. Together with Sicily Naples was recognized independent under a cadet branch of the Spanish Bourbons by the Treaty of Vienna in 1738.