There are six main functions of laws in a country. That to have the harmony in a country, seminal ethical values, endorsing common righteousness, simplifying arranged modification, providing a source for concession and finally to assistance in enabling an idea. Further that there are two categories of law. One is the written law which is the maximum vital basis of law and which is ordained by certain builds while the second rule is the unwritten rule. It does not mean that the unrecorded rule is not written. Mainly it denotes to those laws which are not indorsed by the management and which are not found in the printed Federal and States Structure.
As the problem of definition of law, there is no agreement among scholars as to the roles of act. Jurists have uttered different views about the purpose and function of law. It is well known that rule is a dynamic concept, which keeps on changing with time and place. It must change with changes in the society. Law in the modern sense, is considered not as an end in itself, but is a means to an end. The end is securing of social justice. Almost all theorists agree that law is an instrument of securing justice. As Salmond rightly pointed out, “law is a body of principles recognized and applied by the State in the administration of justice.” Even Hobbes and Locke recognized the positive role of law when they said, “the end of rule is not to abolish or restrain but to preserve or enlarge freedom and liberty.” For Kant, the aim of law is the adjustment of one’s freedom to those of other members of the community. Bentham gave a very practical form of the purpose of law, which according to him, is maximization of the happiness of the greatest number of the members of the community.
Socrates say about the law – The Laws are always mere, according to Socrates, but a law can be unjustly used. This is how Plato tries to reconcile unjust actions with the innate Justice of the Laws. By acquiescing to the injustice, Socrates upheld the Laws and Justice and therefore, the State built upon them.