Monroe Doctrine
In particular, most of the Spanish Empire in South America had recently become independent because of the Napoleonic Wars against France. Having won the Peninsular War, Spain wanted its empire back, which the Monroe Doctrine stated that the United States would resist. The United Kingdom agreed because it wanted to trade with the newly-independent countries and so it helped enforce the Monroe Doctrine by its powerful Royal Navy.