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.
Image source: Wikimedia Commons President-elect Donald Trump celebrated his election victory at the Ultimate Fighting…
Millions of voters across the US chose to return Donald Trump to the White House…
Donald Trump declares victory in the US election as he addresses jubilant supporters in Florida.…
Stocks around the world are rising as Donald Trump appears to be on the cusp…
Donald Trump has won Pennsylvania, North Carolina and Georgia and taken a lead over Kamala…
Quincy Jones, the celebrated musician and producer who worked with Michael Jackson, Frank Sinatra, Ray…