What is the relationship between ethics and the law?

What is the relationship between ethics and the law? Can an action be unethical but not illegal? If so explain how and give an example.