A Chilean court on Wednesday ordered the release of 14 French endurance runners accused of damaging a protected archaeological site in the Atacama Desert after they publicly apologized, agreed to pay the equivalent of nearly $50,000 and accepted a three-year ban on entering Chile.

Under a deal proposed by prosecutors, Judge Carlos Perasso suspended criminal proceedings against the runners during a virtual hearing.

If the defendants comply with the conditions, the case will be dismissed.