Law is a system of rules a society sets to maintain order and protect harm to persons and property. Such systems are ancient, dating back at least to the Code of Hammurabi, written by an ancient Babylonian king around 1760 BC. Today, most countries have tens or hundreds of thousands of pages of laws. They are enforced by the police, supported by the court and prison systems. Laws are written by legislators, such as senators or congressmen. In America and many other countries, these rules must uphold and not contradict the Constitution, a document outlining the most basic rules of the country.
Aside from law being a set of rules, the word also refers to the profession practiced by lawyers, who either prosecute or defend a client from an accusation of violating the law. Becoming a lawyer requires attending law school and passing a bar exam. This entitles the lawyer to a license. Only lawyers with a license are allowed to practice.
There are many categories of law. These include contract, property, trust, tort, criminal, constitutional, administrative, and international. Each of these sets the rules for a distinct area of human activity. Without laws, there is lawlessness, which historically has led to a general breakdown in society, sometimes to the point of a near-standstill in the economy. Those that advocate the abolition of all laws are called anarchists.
Depending on one's political orientation, they will generally favor more or less law. At one end of the spectrum are libertarians, who advocate minimal rules or government intervention into the affairs of the public. At the other end are fascists, who seek to create laws regulating practically everything, generally under the assumption that a disciplined nation will be a powerful nation. Historically, most fascist governments have collapsed.