By 1820, much of Spanish South America had achieved independence, and Spain was on the defensive in those areas where her flag still flew. Amongst the countries that gained their independence in this period was Chile, which after the battle of Maipú in April 1818, faced no further threats to its existence from Spain. For many of the new nations, the period immediately after independence was one of political instability, shading into civil war, and Chile was no exception. However, in comparison with many of its neighbors, the period of instability was short, and the physical destruction not great.