After intense regional diplomacy and emotional debate, Latin American leaders Friday approved a declaration resolving to work for a peaceful end to the crisis, which saw Venezuela and Ecuador send troops to their borders and Colombia accuse its neighbors of backing leftist rebels seeking to topple its government.
The leaders at the summit in the Dominican Republic wasted little time in reversing their steps toward conflict.
Colombia pledged not to follow through on its threat to seek genocide charges against Venezuelan President Hugo Chavez at an international court for allegedly supporting the Revolutionary Armed Forces of Colombia, or FARC, which finances its insurgency through kidnapping and the cocaine trade.
Nicaragua said it would restore diplomatic relations with Colombia, broken off only the day before. Chavez said trade with Colombia should "keep increasing," two days after saying he didn't want even "a grain of rice" from his neighbor.
"We're going to begin to de-escalate," Chavez said. "Hopefully this compromise will be honored so this never happens again."
The statement approved by the presidents notes that Colombian President Alvaro Uribe apologized for the March 1 raid inside Ecuadorean territory that killed 25 people including a senior rebel commander, and that he pledged not to violate another nation's sovereignty again.
But it also commits all the countries to fight threats to national stability from "irregular or criminal groups," a reference to Colombia's accusation that its two neighbors have ties to rebels.
The agreement didn't eliminate the causes of the crisis: a Colombian insurgency that has spilled across its borders, and a stalemate over international efforts to facilitate a swap of rebel-held hostages for imprisoned guerrillas.
The agreement came after a spirited debate followed on live television throughout Latin America. The atmosphere became so bitter that at one point Ecuadorean President Rafael Correa walked out for what an aide said was a bathroom break. He quickly returned and called Uribe a liar.
But in the end, even Correa seemed satisfied and stiffly shook Uribe's hand.
"With the commitment to never again attack a brother country and the request for forgiveness, we can consider this grave incident as over," Correa said.