In Operation Earnest Will, U.S. warships escorted reflagged Kuwaiti oil tankers to protect them from Iranian attacks during the Iran–Iraq War. The United States Navy launched Operation Praying Mantis in retaliation for the Iranian mining of the Persian Gulf during the war and the subsequent damage to an American warship. The attack helped pressure Iran to agree to a ceasefire with Iraq later that summer, ending the eight-year war.[81] Under Carter and Reagan, the CIA repeatedly intervened to prevent right-wing coups in El Salvador and the U.S. frequently threatened aid suspensions to curtail government atrocities in the Salvadoran Civil War.