Barrios' plan for the campaign was to assail Salvador on the west direct from Guatemala with an army under his personal command, and at the same time by a movement from Honduras under General Gregorio Solares on the eastern departments of San Miguel and La Union.

The Mexican general, Lopez Uraga, adjutant-general of Barrios, was stationed with a garrison at Jutiapa to guard the army supplies. At this time the Salvadorans unsuccessfully attacked an isolated position on the frontier, which roused the ire of Barrios. He then directed Uraga to move the supplies to Chingo, whence he started himself to the invasion of Salvador. Solares had not yet been heard from. He had first of all to get Medina and Leiva out of the way in Honduras. The Guatemalan president then marched to the Coco hacienda, and hearing that Chalchuapa was abandoned, occupied it at once. The Salvadorans had their headquarters at Santa Ana. The armies which were to encounter each other on the field of battle were the most numerous Central America had ever seen. Barrios with 8,000 or 9,000 men laid siege of Ahuachapan. Uraga stationed himself at Chalchuapa with about 1,500, and Chingo was left with a handful of men.[XIX-28]

The Guatemalans who have occupied Apaneca were driven away, and on returning thereto encountered the Salvadorans on the 15th of April, and after a fight lasting from eight in the morning till nightfall, were routed, and pursued as far as Atiquizaya, sustaining heavy losses.[XIX-29]

Meantime the belligerent armies in the east were not idle. Solares after hard fighting from the 17th to the 19th of April won a signal and decisive victory at Pasaquina over the Salvadorans commanded by generals Brioso, Delgado, Sanchez, and Espinosa; the results of which were that he obtained control of the departments of San Miguel and La Union, menacing those of San Vicente and Usulutan, and even the official residence of President Valle; thus depriving the government of large resources, and disheartening the army of Gonzalez in Ahuachapan and Santa Ana.[XIX-30] After this victory, Solares being reënforced, the Salvadorans, now reduced to 800 or 900, precipitately retreated to San Miguel, but by desertions on the march dwindled down to less than 200. The defence of San Miguel became impossible, and Solares occupied it, as well as La Union. There being insufficient elements to defend San Vicente, the government ordered the scattered garrisons to concentrate at the capital.

CONVENTION AND TREATY.

The condition of the army of the west was not much better. There were in Ahuachapan about 2,600 men, and in Santa Ana hardly 3,500. The former was greatly decreased by constant fighting during the holy week, and on the day after easter hardly exceeded 900 demoralized troops. An unsuccessful attempt was made against Chalchuapa. A few days later Salvadoran commissioners visited Barrios' headquarters, as he was, it is averred, on the point of raising the siege of Ahuachapan.[XIX-31] He then marched to Atiquizaya, and the next day to Chalchuapa, where the negotiations for peace were held,[XIX-32] which resulted in a convention, preliminary to a treaty of peace, concluded on the 25th of April, ratified the next day, and coupled with the condition sine qua non of a complete change in the personnel of the Salvadoran government.[XIX-33]

Under the preliminary convention of April 25th, Rafael Zaldívar was chosen provisional president, and on the 1st of May appointed his cabinet.[XIX-34] A definitive treaty of peace, friendship, and alliance, offensive and defensive, was signed at Santa Ana May 8th,[XIX-35] in which Honduras joined on the 27th of May. General Gonzalez had meantime repaired on board the British war ship Amethyst at La Libertad, transferring himself afterward to the American mail steamship Costa Rica, on which he left Central America.

Pursuant to the 6th clause of the convention of April 25th, the people were called upon to choose, on the first Sunday of June, a president and vice-president, as well as representatives to the legislative assembly, the latter to meet at San Salvador on the 1st of July. This clause having been duly carried out, the Guatemalan forces withdrew from Salvador, in accordance with the 7th.[XIX-36] The elections took place, the national congress being installed July 3d, and Rafael Zaldívar declared to have been duly chosen constitutional president to continue the term from February 1, 1876, to February 1, 1880. He was accordingly inducted into office on the 19th of July.

Rafael Zaldívar had previously served in both houses of congress, in the cabinet, and filled several diplomatic missions, notably that of minister plenipotentiary in Berlin.[XIX-37] On his return he became President Dueñas' right-hand man and supporter. He was president of the last general assembly at the time of Dueñas' downfall, and considering his life in danger, he concealed himself, and finally escaped out of the country.[XIX-38] After this he lived in exile about five years.[XIX-39]

CONSTITUTIONAL CONGRESS.