 After that, it was ceded to the Kingdom of Bavaria in 1815.During the Austro-Prussian War, it was occupied by Prussia before its annexation in the newly established Hesse Nassau province.It was finally incorporated in the state of Hesse in 1945.