Obeying the law is a general moral obligation. Usually, laws are written from societal ethical codes; therefore the law can embody morality. Obeying the law usually implies the greatest good for the greatest number of people and therefore complies with Mill's utilitarianism. Especially if the law r...