Answer:
In 1823 President James Monroe passed the Monroe Doctrine.
It said that the Western Hemisphere was not open to European Colonization.
It was agreed that Europe would stay out of the Western Hemisphere, and the US would not interfere in European affairs.
If Europe tried to expand into the Western Hemisphere, the US would see that as a threat.