With the eastern forces occupied by defending against the Portuguese, Ramírez had to face the directorial army that invaded his province in 1818.
Among the leaders of that time, Ramírez stands out as one of the most capable; he was never defeated, even after being betrayed and outnumbered.