The Peace of Leoben 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, 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 offered a truce for five days, which was accepted. On 13 April, Merveldt went to the French headquarters at Leoben. He requested the armistice be extended so that a preliminary peace could be signed, which 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.