 After fending off Guatemalan military forces, Bonilla sought peace and signed a friendship pact with both Guatemala and El Salvador.Nicaragua's president José Santos Zelaya saw this friendship pact as an alliance to counter Nicaragua and began to undermine Bonilla.Zelaya supported liberal Honduran exiles in Nicaragua in their efforts to topple Bonilla, who had established himself as a dictator.