ANACORTES, WA (AP) – BNSF Railway has been ordered to pay a PNW tribe for intentionally trespassing on their territory.

A federal judge ordered BNSF to pay nearly $400 million to the Swinomish Tribe after finding that the company repeatedly ran 100-car trains carrying crude oil across the tribe’s reservation.

U.S. District Judge Robert Lasnik initially ruled last year that the railway deliberately violated the terms of a 1991 easement that allows trains to carry no more than 25 cars per day.

The judge held a trial earlier this month to determine how much in profits BNSF made through trespassing and how much it should be required to disgorge.

The tribe sued in 2015 after BNSF dramatically increased – without the tribe’s consent – the number of cars it was running across the reservation.

The route crosses sensitive marine ecosystems along the coast, over water that connects with the Salish Sea, where the tribe has treaty-protected rights to fish.