Law is a structured system of rules and regulations created and enforced by governmental or societal institutions to govern behavior, maintain order, resolve disputes, and protect individual rights. It functions as a foundational tool for justice and fairness within a society.