After a stroke in 1857 the king was partially paralyzed and largely mentally weak, therefore his brother William became regent from 1858 until the king's death in 1861, then he became king himself as William I.