what is purpose of law
The System of Law and Justice. The law is a set of rules for society, designed to protect basic rights and freedoms, and to treat everyone fairly. These rules can be divided into two basic categories: public law and private law. Public law deals with matters that affect society as a whole.