 In mid-April, Bonaparte proposed and the Austrians agreed to the Preliminaries of Leoben.Most of the terms were ratified by the Treaty of Campo Formio in October 1797, ending the long war.On 2 February 1797, the Siege of Mantua ended when Feldmarschall Dagobert Sigmund von Wurmser surrendered the fortress of Mantua.