Law is a system of rules created and enforced through social or governmental institutions to regulate behavior. It plays a crucial role in maintaining order, protecting individual freedoms, and establishing standards for various societal interactions.