a full retreat back across the Andes to Mendoza. In these critical circumstances, the erstwhile Manuel Rodríguez jumped to the lead, haranguing and rallying the soldiers with the cry "There's still a country, citizens!" He named himself Supreme Director, a position which he would occupy for exactly 30 hours, which was the time the living, but wounded, O'Higgins took to return to Santiago and reclaim command. Then, on April 5, 1818, San Martín inflicted a decisive defeat on Osorio the Battle of Maipú, after which the depleted royalists retreated to Concepcion, never again to launch a major offensive against Santiago. Independence was all but secured, and worries about internal divisions were allayed when O'Higgins saluted San Martín as savior of the country, a moment which came to be known as the Embrace of Maipú. Total war To further secure Chilean independence, San Martín launched a series of actions against armed bands in the mountains, consisting of assorted outlaws, royalists, and Indians who had taken advantage of the chaos of military expeditions and forced recruitments to pillage and sack the countryside. This time of irregular warfare was later called the Guerra a muerte (Total war) for its merciless tactics, as neither the guerillas nor the government soldiers took prisoners. Only after the band of Vicente Benavides was liquidated in 1822 was the region around Concepcion finally pacified. Incorporation of Valdivia and Chiloé As San Martín worked to establish internal stability, O'Higgins also looked to defend the country against further external threats by the Spanish and continue to roll back imperial control. He developed the Chilean navy as a line of defense against seaborne attacks, placing the Scotsman Lord Cochrane in the post of admiral. In 1820, Cochrane administered a stunning blow to the remaining royalist forces in a successful attack on a complex of fortifications at Valdivia. Later Cochrane disembarked troops under commander William Miller at northern Chiloé Island in order to conquer the last Spanish stronghold in Chile, the Archipelago of Chiloé. This failed attempt ended in the minor but significant Battle of Agüi. Later on, Georges Beauchef headed from Valdivia an expedition to secure Osorno so that the Spanish would not reoccupy Valdivia from the land. Beauchef inflicted a decisive defeat on the royalists at the Battle of El Toro. In any case, San Martín and O'Higgins were in agreement that the danger would not be passed until the