Law maintains peace and order in society by establishing a clear set of rules and regulations that govern people's behaviour. It creates a framework within which individuals can coexist and interact safely, and it deters potential offenders by imposing punishments for illegal actions. Furthermore, law enforcement agencies work to uphold and enforce these laws, thereby preserving societal order. Overall, the law provides a stable structure that encourages social harmony and fosters cooperation within communities.