Mining union leaders and Prime Minister Armando Villanueva signed an agreement Monday ending a 57-day-old nationwide strike that helped push world copper prices to record levels, the official Andina news agency said.

The miners strike, the longest in Peru's modern history, cost the nation more than $300 million in lost earnings, Villanueva said.Leaders of the National Federation of Miners, Metal and Steelworkers signed an accord with Villanueva ending the strike, Andina said.

The news agency did not provide details of the accord, but federation leaders earlier said the government of President Alan Garcia had agreed to recognize the communist-led federation as the bargaining voice for Peru's 60,000 miners.