ail in the war. The losses of Montoneros by the end of 1976 were near 2000. The Junta tried to increase its popularity with the Beagle conflict and the 1978 FIFA World Cup. As of 1977, the ERP was completely defeated. Montoneros was severely weakened, but launched a massive counterattack in 1979. It was defeated, ending the guerrilla threat, but the military Junta stayed in government. Leopoldo Galtieri launched the Falklands War (Spanish: Guerra de Malvinas), attempting to annex the islands, but within two months Argentina was defeated by the United Kingdom which considered the islands to be part of its own overseas territory. Galtieri left the government because of the military defeat, and Reynaldo Bignone began to organize the transition to democratic rule, with the free elections in 1983.
In the 1983 electoral campaign Alfonsín called to national unity, restoration of democratic rule and prosecution of the responsibles of the dirty war. He established the National Commission on the Disappearance of Persons (CONADEP) to investigate the forced disappearances. The CONADEP generated a report detailing 340 centers of illegal detentions and 8961 forced disappearenced. The 1985 Trial of the Juntas sentenced all the heads of government of those years. Alfonsín aimed then to the military of lower ranks, but the discontent among the military and the risk of a new coup increased. To please them, he issued the full stop law, which established a deadline for new trials. This did not work as intended, and the Carapintadas mutinied, forcing the law of Due Obedience that exempted the military that followed orders from superior ranks. This lowered the public support to the government, as well as an economic crisis that led to an hyperinflation. The Peronist Carlos Menem won the 1989 elections, but huge riots caused by the economic crisis forced Alfonsín to resign, handing government to Menem.
Carlos Menem led a change in Peronism,