Answer
During Carrera's presidency, the United States was embroiled in the American Civil War. Carrera was able to use the conflict to his advantage, as the US was preoccupied with the war and was unable to focus on Central America. This allowed Carrera to consolidate his power and expand his territory.