A court in Chile has freed 14 French runners accused of damaging a protected ancient site in the Atacama Desert. They apologized and agreed to pay a fine of nearly $50,000. They will also be barred from Chile for three years.

The runners had climbed a hill to film an ad above the Giant of Tarapacá, a huge figure made in the earth long ago, the Associated Press reports. BBC News reports that they waved the flag of their sponsor at the site.

Judge Carlos Perasso suspended the criminal case during a virtual hearing under a deal from prosecutors, the AP reports. If the runners meet the terms, the case will be dropped, according to the AP.

The 12 men and two women must pay a group fine of 50 million pesos, BBC News reports. Once they pay, they can go home but cannot come back to Chile for three years, according to BBC News.

The runners had been held since their arrest on Saturday, BBC News reports. The AP reports that they were freed after their time in custody.

"We offer our sincere apologies to the local communities, the Chilean people and all those who work to preserve this cultural heritage," the runners said in a statement read in court, according to the AP.

One runner said the group had "not understood the signage," BBC News reports.

Chile's culture minister said their footprints had damaged the site, BBC News reports. "It's worrying because we're talking about a very fragile archaeological site," Culture Minister Francisco Undurraga said, according to the AP.

The runners were in Chile for a relay race sponsored by the Paris sportswear brand Shinzo Paris, BBC News reports. The brand posted the video and later took it down, according to BBC News.

France's Foreign Ministry said its embassy is following the case, the AP reports.

What we know: The 14 runners were freed after apologizing and agreeing to pay a fine and stay out of Chile for three years. What we don't know: Whether the site will need repairs.