On 18 September 1810, O'Higgins joined the revolt against the now French-dominated Spanish government. The
criollo leaders in Chile did not support
Joseph Bonaparte's rule in Spain, and a limited self-government under the
Government Junta of Chile was created, with the aim of restoring the legitimate Spanish throne. O'Higgins strongly recommended that a national congress be created, and was elected a deputy to the first
National Congress of Chile in 1811 as a representative of the
Laja district. Tensions between the
royalist and increasingly pro-independence factions, to which O'Higgins remained attached as a junior member, continued to grow. , with whom O'Higgins had an ongoing feud The anti-Royalist camp in Chile was deeply split along lines of patronage and personality, political beliefs, and geography (between the rival regional groupings of
Santiago and
Concepción). The
Carrera family had already seized power several times in different coups, and supported a specifically Chilean nationalism, as opposed to the broader Latin American focus of the
Lautaro Lodge grouping, which included O'Higgins and the Argentine
José de San Martín.
José Miguel Carrera, the most prominent member of the Carrera family, enjoyed a power base in Santiago; that of de Rozas, and later O'Higgins, lay in
Concepción. As a result, O'Higgins was to find himself increasingly in political and military competition with Carrera—although early on, O'Higgins was nowhere near as prominent as his later rival. De Rozas initially appointed O'Higgins to a minor military position in 1812, possibly because of his illegitimate origins, poor health, or lack of military training. Much of O'Higgins' early military knowledge stemmed from
Juan Mackenna, an immigrant of Irish descent and a former client of Ambrosio's, whose advice centred mainly on the use of cavalry. before moving on to
Talca, meeting up with Carrera, who was to take command of the new army. Carrera sent O'Higgins to cut the Spanish off at
Linares; O'Higgins' victory there resulted in his promotion to colonel. The unsuccessful
Siege of Chillan followed, where O'Higgins produced a brave but unspectacular performance; however, as commander, Carrera took most of the blame for the defeat, weakening his prestige with the
Junta back in Santiago. O'Higgins continued to campaign against the royalists, fighting with a reckless courage that would make him famous. In October, fighting at the
Battle of El Roble under Carrera, O'Higgins took effective command at a crucial moment and gave one of his more famous orders: Lads! Live with honor, or die with glory! He who is brave, follow me! Despite being injured, O'Higgins went on to pursue the royalist forces from the field. The
Junta in Santiago reassigned command of the army from Carrera, who had retreated during the battle, to O'Higgins, who then appointed
Juan Mackenna as commandant-general. Carrera was subsequently captured and imprisoned by the royalist forces; in his absence, in May 1814 O'Higgins supported the
Treaty of Lircay, which promised a halt to the fighting. Once released, however, Carrera violently opposed both O'Higgins' new role and the treaty, overthrowing the
Junta in a coup in July 1814 and immediately exiling Mackenna. . 1818. O'Higgins turned to focus on Carrera, and their forces met at the
battle of Las Tres Acequias, where Carrera's brother
Luis inflicted a modest defeat on O'Higgins. Further conflict was postponed by the news that the royalists had decided to ignore the recent
treaty, and were threatening
Concepción under the leadership of General
Mariano Osorio. Carrera and O'Higgins decided to reunite the army and face the common threat. Carrera's plan was to draw the Spaniards to the Angostura del Paine, while O'Higgins preferred the town of
Rancagua. They decided to make a stand at the Angostura de Paine, a gorge that formed an easily defended bottleneck. At the last hour, however, O'Higgins instead garrisoned the nationalist forces at the main square of
Rancagua. Carrera did not arrive with reinforcements, and O'Higgins and his forces were promptly surrounded in October. After an entire day of fighting at the
battle of Rancagua, the Spanish commander, Mariano Osorio, was victorious—but O'Higgins managed to break out with a few of his men, issuing the command:Those who can ride, ride! We will break through the enemy! Like Carrera and other nationalists, O'Higgins retreated to Argentina with the survivors and remained there for three years while the royalists were in control. Mackenna, still a key supporter, was killed by Luis Carrera in a duel in 1814, deepening the feud. ==O'Higgins as Supreme Director==