An indigenous community has won a court battle to regain ownership over its ancestral homeland in the Ecuadorian Amazon, more than 80 years after they were displaced because of war.

An Ecuadorian appeals court backed the Siekopai nation’s claim over Pë’këya, a biodiverse territory in northeast Ecuador along the border with Peru, according to a court ruling provided to CNN by Amazon Frontline, a nonprofit organization working with indigenous people to defend their land rights.

The Siekopai were displaced during the Peru-Ecuador war in the 1940s.