Louis XII in 1502. In the first decade of the 16th century, Ragusan consuls were sent to France while their French counterparts were sent to Ragusa. Prominent Ragusans in France included Simon de Benessa, Lovro Gigants, D. de Bonda, Ivan Cvletković, captain Ivan Florio, Petar Lukarić (Petrus de Luccari), Serafin Gozze, and Luca de Sorgo. The Ragusan aristocracy was also well represented at the Sorbonne University in Paris at this time. The fate of Ragusa was linked to that of the Ottoman Empire. Ragusa and Venice lent technical assistance to the Ottoman–Mameluke–Zamorin alliance that was defeated by the Portuguese in the Battle of Diu in the Indian Ocean (1509). There is some evidence of Ragusan trade with India in the 16th century. On 6 April 1667, a devastating earthquake struck and killed around 2,000 citizens, and up to 1,000 in the rest of the republic, including many patricians and the Rector () Šišmundo Getaldić. The earthquake also levelled most of the city's public buildings, leaving only the outer walls intact. Buildings in the Gothic and Renaissance styles – palaces, churches and monasteries – were destroyed. Of the city's major public buildings, only the Sponza Palace and the front part of the Rector's Palace at Luža Square survived. Gradually the city was rebuilt in the more modest Baroque style. With great effort Ragusa recovered a bit, but still remained a shadow of the former Republic. In 1677 Marin Caboga (1630–1692) and Nikola Bunić (ca. 1635–1678) arrived in Constantinople in an attempt to avert an imminent threat to Ragusa: Kara-Mustafa's pretensions for the annexation of Ragusa to the Ottoman Empire. The Grand-Vizier, struck with the capacity Marin showed in the arts of persuasion, and acquainted with his resources in active life, resolved to deprive his country of so able a diplomat, and on 13 December he was imprisoned, where he was to remain for several years. In 1683, Kara-Mustafa was killed in the attacks on Vienna, and Marin was soon free to return to Ragusa. In 1683 the Ottomans were defeated in the Battle of Kahlenberg outside Vienna. The Field marshal of the Austrian army was Ragusan Frano Đivo Gundulić. In 1684, the emissaries renewed an agreement contracted in Visegrád in the year 1358 and accepted the sovereignty of Habsburg as Hungarian Kings over Ragusa, with an annual tax of 500 ducats. At the same time Ragusa continued to recognize the sovereignty