The Département de Rhin-et-Moselle was established by the French First Republic in 1798 in the territories of the Holy Roman Empire conquered after the War of the First Coalition in 1794, after the failure of the creation of an independent Cisrhenian Republic. The annexation was legalized under international law by the Treaty of Lunéville on February 9, 1801. Since the French had to evacuate the right bank territories according to the peace treaty, they blew up before the old fortress of Ehrenbreitstein. Following the inauguration of the administrative division, the cities and municipalities of the département received civil administrationfor the first time. From 1802 all the religious foundations and monasteries in the department were secularized. In the Concordat of 1801 the state guaranteed religious tolerance to the churches. With the dissolution of the ecclesiastical rule and the change of ownership, a new social order emerged. With the adoption of the Code civil from 1804, a modern legal system was introduced, based on individual liberties, equality before the law, the rule of law, the protection of property, and the strict separation of church and state. In the areas of the left bank of the Rhine, it continued even after the French period until the introduction of the Bürgerliches Gesetzbuch in 1900. The new legal system replaced the previous secret inquisition processes and replaced them with public prosecution and jury trials. Furthermore, the male population of the conquered territories was subject to draft into the French army and thus had to participate in the French wars of conquest, including the French invasion of Russia, where many of the soldiers were killed. The French legacy of administration and justice, which was maintained during the Prussian period, allowed much greater scope for liberal aspirations. The Hambach Festival of 1832 and the German revolutions of 1848–49 would have been unimaginable without this legacy. The Département de Rhin-et-Moselle existed until 1814. On New Year's Eve in 1814, Russian troops together with Blücher's Silesian army crossed the Rhine near Koblenz, Kaub and Mannheim. The French evacuated the département and left it to the Russians and Prussians without a fight. Thereafter, it was administered for a short time as part of the General Government of the Middle Rhine and was finally assigned to the Kingdom of Prussia in 1815 at the Congress of Vienna. Prussia formed the short-lived province of the Grand Duchy of Lower Rhine, the southern forerunner of the Rhine Province, from the areas that it had acquired.