The Kingdom of Westphalia was a client state of France in present-day Germany, that existed from 1807 to 1813. While formally independent, it was ruled by Napoleon's brother Jérôme Bonaparte. It was named after Westphalia, but this was a misnomer since the kingdom had little territory in common with that area. The region mostly covered territory formerly known as Eastphalia. Napoleon imposed the first written modern constitution in Germany, a French-style central administration, and agricultural reform. The Kingdom liberated the serfs and gave everyone equal rights and the right to a jury trial. In 1808 the Kingdom passed Germany's first laws granting Jews equal rights, thereby providing a model for reform in the other German states. Westphalia seemed to be progressive in immediately enacting and enforcing the new reforms. The country was relatively poor but Napoleon demanded heavy taxes and payments and conscripted soldiers. Few of the men who marched into Russia with Napoleon in 1812 returned. The Kingdom was bankrupt by 1812. When Napoleon was retreating in the face of Allied advances in 1813, the Kingdom was overrun by the Allies and (in 1815) most of its territories became Prussian. Most of the reforms, however, remained in place. Formation The Kingdom of Westphalia was created by Napoleon in 1807 by merging territories ceded by the Kingdom of Prussia in the Peace of Tilsit, among them the region of the Duchy of Magdeburg west of the Elbe River, the Brunswick-Lüneburg territories of Hanover and Brunswick-Wolfenbüttel, and the Electorate of Hesse. Hesse's capital Cassel (modern spelling Kassel) then fulfilled the same function for Westphalia, and the king kept the court at the palace of Wilhelmshöhe, renamed Napoleonshöhe. The state was a member of the Confederation of the Rhine. Since it was intended as a Napoleonic "model state", a constitution was promulgated on 15 November and enacted by King Jérôme on 7 December 1807, the day after he had arrived in Cassel, making Westphalia the first monarchy in Germany with a modern-style constitution. The constitution made all male residents citizens with equal rights. Thus serfs were liberated, Jews emancipated, and socage abolished. The Napoleonic code was enacted, doing away with guilds and providing for the right of capitalism. A metric system of weights and measures was introduced. The organisers used French terms to designate the regional territories within the kingdom: departments received names based on watercourses (Elbe, Saale, Weser, Fulda, Leine, Oker)