The view that both individuals and societies should seek happiness led the 18th century to place great weight on the role of the legislator. This, in turn, spawned a great interest in the law and one of the most influential works of the time, Cesare Beccaria's On Crimes and Punishments (1763)—an effort to reform, rationalize, and soften the criminal laws of Europe.