The joint-venture company they own, Samarco, does not have enough resources to cover the potential damages, estimated at 20.2 billion reais ($5.2 billion), the judge ruled.
Samarco owned the dam, which held back waste water from iron ore mining.
The dam burst last month, flooding a vast area and killing at least 13 people.
Anglo-Australian company BHP Billiton and Brazil-based Vale said they had not been officially notified.
Judge Marcelo Aguiar Machado’s ruling was published on December 18.
The two companies will also have to implement “immediate damage-mitigating environmental measures” or they will be liable to a daily fine of 150 million reais ($38 million), ruled Judge Marcelo Aguiar Machado.
On November 28, the Brazilian government filed a lawsuit against Samarco for the environmental damage caused by the accident.
Environment Minister Izabella Teixeira said the accident in the south-eastern state of Minas Gerais had “a huge impact from an environmental point of view”.
The village of Bento Rodrigues was totally destroyed and the toxic mud generated by the November 5 dam collapse polluted drinking water over a vast area.
The money will be used to compensate the victims and help repair the environment.
“It is not a natural disaster, it is a disaster prompted by economic activity, but of a magnitude equivalent to those disasters created by forces of nature,” said Izabella Teixeira when the lawsuit was filed.
About 310 miles of the Rio Doce – one of Brazil’s most important rivers – will have to be dredged in parts, vegetation replanted and fresh-water springs cleared, the minister said.
Less than a week after the accident, Samarco had its mining license suspended.
Samarco also agreed to pay 1 billion reais ($260 million) temporary compensation to the victims.
The US House Ethics Committee has voted to release its report on former Republican Representative…
ABC News has agreed to pay $15 million to President-elect Donald Trump to settle a…
South Korea’s parliament has voted to impeach President Yoon Suk Yeol over his failed attempt…
Israeli war planes have carried out more than 100 air strikes in Syria on December…
President-elect Donald Trump has threatened to impose 100% tariffs on the BRICS countries if they…
Syrian troops have withdrawn from the city of Aleppo following an offensive by rebels opposed…