One of the chief functions of law is to protect the rights of individuals. To be sure, every law restricts someone's freedom in order to protect someone else's rights. Laws against theft restrict the freedom of thieves while protecting the private-property rights of their intended victims. Laws against murder restrict the liberty of murderers to do their own thing.