Around 1845 riots broke out in The Hague because of famine. William II was scared of the angry crowds and gave Thorbecke the task of writing a new constitution.
This constitution gave NL a parliamentary system, the king lost his power but remained head of state.
The constitution also guaranteed civil liberties (burgerrechten)