The Battle of Vác, fought on 10 April 1849, was one of the two important battles which took place in Vác in the Spring Campaign of the Hungarian War of Independence from 1848–1849, fought between the Habsburg Empire and the Hungarian Revolutionary Army.
 This battle was the starting point of the second phase of the Spring Campaign, which had the purpose of relieving the fortress of Komárom from the imperial siege, and with this to encircle the Habsburg imperial forces headquartered in the Hungarian capitals of Buda and Pest.
 The Hungarians won the battle, in which the Austrian commander Major General Christian Götz was fatally wounded, dying after the battle.
 His body was buried by the Hungarian high commander Artúr Görgei with military honors, this being one of the examples of gallantry and high respect for the fallen enemy hero in the Hungarian War for Independence.
The Preliminary Treaty of San Stefano (Russian: Сан-Стефанский мир; Peace of San-Stefano, Сан-Стефанский мирный договор; Peace treaty of San-Stefano, Turkish: "Ayastefanos Muahedesi" or "Ayastefanos Antlaşması") was a treaty between Russia and the Ottoman Empire signed at San Stefano, then a village west of Constantinople, on 3 March [O.S. 19 February] 1878 by Count Nicholas Pavlovich Ignatiev and Aleksandr Nelidov on behalf of the Russian Empire and Foreign Minister Safvet Pasha and Ambassador to Germany Sadoullah Bey on behalf of the Ottoman Empire.
 The treaty ended the Russo-Turkish War, 1877–78.
The Treaty of Hubertusburg (German: "Frieden von Hubertusburg" ) was signed on 15 February 1763 at Hubertusburg Castle by Prussia, Austria and Saxony to end the Third Silesian War.
 Together with the Treaty of Paris, signed five days earlier, it marked the end of the Seven Years' War.
 The treaty ended the continental conflict with no significant changes in prewar borders.
 Austria and Saxony renounced all claims to the Silesian territories ceded to Prussia in the 1742 Treaty of Berlin and the 1745 Treaty of Dresden.
 Prussia clearly stood among the ranks of the European great powers, while the treaty enhanced the rivalry with Austria.
The Battle of Dublin was a week of street battles in Dublin from 28 June to 5 July 1922 that marked the beginning of the Irish Civil War.
 Six months after the Anglo-Irish Treaty ended the recent Irish War of Independence, it was fought between the forces of the new Provisional Government and a section of the Irish Republican Army (IRA) that opposed the Treaty.
 The fighting began with an assault by Provisional Government forces on the Four Courts building, which had been occupied by the Anti-Treaty IRA, and ended in a decisive victory for the Provisional Government.
The Great Turkish War (German: "Der Große Türkenkrieg" ) or the War of the Holy League (Turkish: "Kutsal İttifak Savaşları" ) was a series of conflicts between the Ottoman Empire and the Holy League consisting of the Habsburg Empire, Poland-Lithuania, Venice and Russia.
 Intensive fighting began in 1683 and ended with the signing of the Treaty of Karlowitz in 1699.
 The war was a defeat for the Ottoman Empire, which for the first time lost large amounts of territory.
 It lost lands in Hungary and Poland, as well as part of the western Balkans.
 The war was also significant in that it marked the first time Russia was involved in a western European alliance.
The Battle of Vác was fought on June 27, 1684, near the city of Vác in central Hungary, between the forces of the Ottoman Empire, and the forces of the Holy Roman Empire as part of the Great Turkish War.
 The Austrian army was victorious.
The Treaty of Schönbrunn (French: "Traité de Schönbrunn" ; German: "Friede von Schönbrunn" ), sometimes known as the Treaty of Vienna, was signed between France and Austria at Schönbrunn Palace near Vienna on 14 October 1809.
 The treaty ended the Fifth Coalition during the Napoleonic Wars, after Austria had been defeated at the decisive Battle of Wagram on July 5/6.
The Treaty of Versailles (French: "Traité de Versailles" ) was the most important of the peace treaties that brought World War I to an end.
 The Treaty ended the state of war between Germany and the Allied Powers.
 It was signed on 28 June 1919 in Versailles, exactly five years after the assassination of Archduke Franz Ferdinand.
 The other Central Powers on the German side of World War I signed separate treaties.
 Although the armistice, signed on 11 November 1918, ended the actual fighting, it took six months of Allied negotiations at the Paris Peace Conference to conclude the peace treaty.
 The treaty was registered by the Secretariat of the League of Nations on 21 October 1919.
The Ostrów or Astrava Agreement (Lithuanian: "Astravos sutartis" , Belarusian: Востраўскае пагадненне , Polish: "Ugoda w Ostrowie" ) was a treaty between Jogaila (Władysław II Jagiełło), King of Poland and Grand Duke of Lithuania, and his cousin Vytautas the Great, signed on 4 August 1392.
 The treaty ended the destructive Lithuanian Civil War, launched in 1389 by Vytautas who hoped to gain political power, and concluded the power struggle between the two cousins that erupted in 1380 after Jogaila secretly signed the Treaty of Dovydiškės with the Teutonic Knights.
 The Ostrów Agreement did not stop attacks from the Teutonic Knights and the territorial dispute over Samogitia continued up to 1422.
 According to the treaty, Vytautas became the ruler of Lithuania (styled Grand Duke), but he also acknowledged Jogaila's (styled Supreme Duke) rights to Lithuania.
 The details of the Polish–Lithuanian relationship were clarified in several later treaties, including the Union of Vilnius and Radom in 1401 and Union of Horodło in 1413.
The Treaty of the Dardanelles (also known as the Dardanelles Treaty of Peace, Commerce, and Secret Alliance, the Treaty of Çanak, the Treaty of Chanak or Turkish: "Kale-i Sultaniye Antlaşması" ) was concluded between the Ottoman Empire and the United Kingdom of Great Britain and Ireland on 5 January 1809 at Çanak, Ottoman Empire.
 The treaty ended the Anglo-Turkish War.
 The Porte restored extensive British commercial and legal privileges in the empire.
 The United Kingdom promised to protect the integrity of the Ottoman Empire against the French threat, both with its own fleet and through weapons supplies to Constantinople.
 The treaty affirmed the principle that no warships of any power should enter the Straits of the Dardanelles and the Bosporus.
 The treaty anticipated the London Straits Convention of 1841, by which the other major powers committed themselves to this same principle.

Question: What treaty ended the war in which the Battle of Vác was fought?
Answer: Treaty of Karlowitz