The Treaty of Leoben[a] was a general armistice and preliminary peace agreement between the Holy Roman Empire and the First French Republic that ended the War of the First Coalition. It was signed at Eggenwaldsches Gartenhaus, near Leoben, on 18 April 1797 (29 germinal V in the French revolutionary calendar) by General Maximilian von Merveldt and the Marquis of Gallo on behalf of the Emperor Francis II and by General Napoléon Bonaparte on behalf of the French Directory. Ratifications were exchanged in Montebello on 24 May, and the treaty came into effect immediately.
On 30 March, Bonaparte had made his headquarters at Klagenfurt and from there, on 31 March, he sent a letter to the Austrian commander-in-chief, the Archduke Charles, requesting an armistice to prevent the further loss of life. Receiving no response, the French advanced as far as Judenburg by the evening of 7 April. That night, Charles proffered a truce for five days, which was accepted. On 13 April, Merveldt went to the French headquarters at Leoben and requested the armistice be extended so that a preliminary peace could be signed. That was granted and three proposals were drawn up. The final one was accepted by both sides, and, on 18 April, at Leoben, the preliminary peace was signed.
The treaty contained nine public articles and eleven secret ones. In the public articles, the Emperor ceded his "Belgian Provinces" (the Austrian Netherlands), and in the secret articles, he ceded his Italian states (Lombardy) in exchange for the Italian mainland possessions of the Republic of Venice, which had not yet been conquered. Except for these personal losses to the ruling Habsburgs, the treaty preserved the integrity of the Holy Roman Empire unlike in the amplified Treaty of Campo Formio of 17 October 1797.
No final peace between the Holy Roman Empire and France was reached before the outbreak of the War of the Second Coalition in 1799.