Nicaragua used international law to fight the United States, and the International Court of Justice in 1986 ruled in Nicaragua's favor and said that the United States has to stop arming and training the Contras who were blowing up ships in Nicaragua's harbors and who were killing people mostly in rural northern Nicaragua.