The Azov campaigns demonstrated the significance of having a fleet and marked the beginning of Russia's becoming a maritime power. Russia's success at Azov strengthened its positions during the Karlowitz Congress of 1698-1699 and favored the signing of the Treaty of Constantinople in 1700.As Azov's harbor was not convenient for the military fleet, the Tsar selected another more appropriate site on July 27, 1696, on the cape Tagan-Rog . On September 12, 1698, Taganrog was founded there, which became the first military base of the Russian Navy. Although the campaign was a success, it was evident to Peter I of Russia that he achieved only partial results, since his fleet was bottled up in the Sea of Azov due to Crimean and Ottoman control of the Strait of Kerch. A regular navy and specialists who could build and navigate military ships were necessary for resisting the Ottoman attacks. On October 20, 1696, the Boyar Duma decreed the creation of the regular Imperial Russian Navy; this date is considered to be the birthdate of the Russian Navy. The first shipbuilding program consisted of 52 vessels. In 1697, a Russian ambassador present at the Safavid court raised an issue by handing over a note which stipulated that "Lezgi, Circassian, and other Caucasian tribesmen, ostensibly Persian subjects", had provided assistance to the Ottomans during the Azov campaigns. The report also included the request to declare war on the Ottomans, as well as to repay some 300,000 tomans to the Russians, which the report asserted were owed to the Tsar "since the days of shah Safi" .
Question: Which happened second, the Karlowitz Congress of 1698-1699 or the Treaty of Constantinople?
Answer: the Treaty of Constantinople