In 1818 a 2nd class patrimonial court was established in the old Hofmark in the wake of reforms in Bavaria. In 1845 Amélie de Beauharnais, widow of the emperor of Brazil, bought Stein Castle for herself and her daughter. In 1848 she ceded the Stein Court to the state as compensation.
