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

British Petroleum's neglect of its equipment was unethical, but probably not illegal.

The same is true of the mortgages given to people who couldn't afford them.