supreme court of canada after going bankrupt, an oil and gas company has to fulfill provincial environmental obligations before paying anyone it owes money to, the supreme court has ruled. redwater was an alberta oil and gas company. it owned over a hundred wells, pipelines, and facilities when it went bankrupt in 2015. bankruptcy is what happens when a person or company can't pay debts. under the bankruptcy and insolvency act (bia), a trustee manages the process. anyone who can prove they are owed money can make a claim, called a 'claim provable in bankruptcy.' anyone with a provable claim will get paid in a certain order set out in the bia. they won't get paid, though, if there is no money left. other claims fall outside of the payment order. the bankrupt company's 'estate' (its leftover money and property) is still responsible for them, despite the bankruptcy. under the constitution, only the federal government has power to make laws on bankruptcy, so the bia is a federal law. the constitution also gives provinces power to make laws in specific areas. these include natural resources and property rights. using these powers, alberta passed laws saying oil and gas companies need a licence to operate. as part of the licence, companies have to ''abandon' wells, pipelines, and facilities when they are done. this means permanently taking these structures down. they also have to 'reclaim'' the land (by cleaning it up). companies can't transfer licences without permission from the alberta energy regulator. they won't get it if they haven't met their responsibilities. most of redwater's wells were dry when it went bankrupt. dismantling the sites and restoring the land would have cost millions of dollars more than they were worth. to avoid paying these costs, the trustee decided not to take responsibility for (basically, to disown) the useless wells and sites. it said it was allowed to do this under the bia. it wanted to sell the productive sites to pay people redwater owed money to. the regulator said that this wasn't allowed under the bia or provincial law. it ordered the trustee to dismantle the disowned sites. the trustee said that even if the regulator was right, the provincial abandonment orders were provable claims under the bia. this meant the money would first go to pay people redwater owed. the problem was that the federal and provincial laws seemed to contradict each other. when laws are applied, they sometimes overlap. this happens even when governments stick to their own areas under the constitution. it often comes up in bankruptcy cases. where a valid provincial law conflicts with a valid federal law, the federal law will normally apply as far as the conflict goes. (federal and provincial laws should be understood as being in harmony, where possible.) in constitutional law, this is known as the 'doctrine of paramountcy.' there were two main legal issues. the first was whether the bia said the trustee could simply walk away from sites it didn't take responsibility for. the second was whether the provincial orders to remove structures from the land were provable claims under the bia. if they were, that would mean the payment order set up in the bia applied. only money left at the end if there was any could be used to pay for taking the sites down. the trial judge said the trustee was allowed to walk away from the disowned sites and the abandonment costs were provable claims. the majority at the court of appeal agreed. the majority at the supreme court said the trustee couldn't walk away from the disowned sites. it said the bia was meant to protect trustees from having to pay for a bankrupt estate's environmental claims with their own money. it didn't mean redwater's estate could avoid its environmental obligations. the majority also said the abandonment costs were not provable claims. these costs weren't debts requiring payments they were duties (to the public and nearby landowners). this put the abandonment costs outside the bia's payment order scheme. that meant there was actually no conflict between the federal and provincial laws. in this case, the trustee had already sold or given up all of redwater's assets. the money from the sales was held 'in trust' (that is, by a court) during the lawsuit. this money must now be used to abandon and reclaim the land before anything is paid to anyone redwater owed money to.