A federal court in Brazil has ordered Vale and BHP Billiton to deposit BRL1.2bn ($365m) within 30 days to help clean up last year’s dam disaster.

The court also gave the two mining companies 90 days to prove they had stopped the leaks from the Fundão tailing dam and six months to present conclusive studies to clean the remaining waste in the Doce River, Vale said in a statement.

The Fundão dam collapsed in November 2015, killing 19 people, destroying 200 homes and polluting the Doce River.

Samarco agreed in March to pay BRL20bn in damages over the next 15 years. Federal prosecutors sued the company for BRL155bn in May and last month charged 21 people with qualified homicide. Samarco, a joint venture between Vale and BHP, Samarco missed a $20.1m payment on its $700m 2023 bonds in October and a $13.5m payment on its $500m 2024s in September.

Vale and BHP have disagreed on how to restart operations at Samarco.