In economics, legislation is an important tool of government to control the actions of consumers and producers, protect private property, and protect the environment against harmful externalities.
In simple terms, legislation can either target the consumer (the demand for goods and services) or producer (the suppliers of goods and services). Laws can be passed to deal with a variety of behaviours by these economic agents, including:
These are just a few examples of how legislation can impact the demand and supply of goods and services.
Legislation will either attempt to reduce the supply of a harmful demerit good, or reduce the demand. For example, licensing and controlling the hours that bars or restaurants are open will reduce the supply of alcoholic drinks (shifting the supply curve to S1 in the diagram below) and imposing age restrictions will reduce the potential demand for alcohol (shifting the demand curve to D1)
The effectiveness of legislation depends upon how economic agents respond. This may not be to the extent that law makers hope, which may be determined by the size of any penalty and the changes of being caught.
The costs of enforcement may also be a concern. To prevent all illegal drug taking would be impossible given the costs of enforcement and the difficulty in recruiting sufficient police officers.
Economic incentives may be stronger than any penalty from legislation - the financial gains made by firms from collusion and market rigging may simply outweigh the penalties from being caught.