However, in 1794, French revolutionary troops conquered Koblenz; in the following years they besieged Ehrenbreitstein three times without success. But a one-year siege, starting in 1798 during the War of the Second Coalition, brought starvation to the defenders of Ehrenbreitstein who finally handed over the fortress to French troops in 1799. By the Treaty of Lunéville, the French were eventually forced to withdraw from the right bank of the Rhine. Hence, they blew up Ehrenbreitstein in 1801 to prevent the enemy from taking hold of a fully functional fortress just a few meters away from French territory on the left bank of the Rhine.