 With the Hessian troops, he was involved in the War of the Sixth Coalition against Napoleon in 1813.He succeeded as Elector of Hesse (a title that was moribund after the dissolution of the Holy Roman Empire in 1806) on his father's death in 1821.On 13 February 1797 in Berlin, William married Princess Augusta of Prussia, fourth daughter of King Frederick William II of Prussia.