1302, which saw Frederick III recognised as king of the Isle of Sicily, while Charles II was recognised as the king of Naples by Pope Boniface VIII. Despite the split, Naples grew in importance, attracting Pisan and Genoese merchants, Tuscan bankers, and with them some of the most championed Renaissance artists of the time, such as Boccaccio, Petrarch and Giotto. Alfonso I conquered Naples after his victory against the last Angevin king, René, and Naples was unified for a brief period with Sicily again. Aragonese to Bourbon Sicily and Naples were separated in 1458 but remained as dependencies of Aragon under Ferrante. The new dynasty enhanced Naples' commerce by establishing relations with the Iberian peninsula. Naples also became a centre of the Renaissance, with artists such as Laurana, da Messina, Sannazzaro and Poliziano arriving in the city. During 1501 Naples came under direct rule from France at the time of Louis XII, as Neapolitan king Frederick was taken as a prisoner to France; this lasted four years. Spain won Naples at the Battle of Garigliano and, as a result, Naples then became part of the Spanish Empire throughout the entire Habsburg Spain period. The Spanish sent viceroys to Naples to directly deal with local issues: the most important of which was Pedro Álvarez de Toledo, who was responsible for considerable social, economic and urban progress in the city; he also supported the Inquisition. During this period Naples became Europe's second largest city after Paris. During the Baroque era it was home to artists including Caravaggio, Rosa and Bernini; philosophers such as Telesio, Bruno, Campanella and Vico; and writers such as Battista Marino. A revolution led by local fisherman Masaniello saw the creation of a brief independent Neapolitan Republic, though this lasted only a few months before Spanish rule was regained. Finally, by 1714, the Spanish ceased to rule Naples as a result of the War of the Spanish Succession; it was the Austrian Charles VI who ruled from Vienna, similarly, with viceroys. However, the War of the Polish Succession saw the Spanish regain Sicily and Naples as part of a personal union, which in the Treaty of Vienna were recognised as independent under a cadet branch of the Spanish Bourbons in 1738 under Charles VII. During the time of Ferdinand IV, the French Revolution made its way to Naples: Horatio Nelson, an ally of the Bourbons, even arrived in the