Law is a structured system of rules, regulations, and norms created and enforced by governmental or social institutions to regulate behavior, maintain order, and resolve disputes. It shapes politics, economics, and society, acting as a mediator of relations, with its foundations in legislation, judicial precedents, and social customs.