The early 19th century was a period of significant geopolitical shifts. European powers, particularly Spain, were grappling with the loss of their colonies in the Americas, leading to a reconfiguration of global influence. Simultaneously, the United States was emerging as a nascent nation, eager to assert its sovereignty and protect its interests. In this context, President James Monroe’s 1823 declaration, known as the Monroe Doctrine, marked a pivotal moment in U.S. foreign policy. It proclaimed that the Western Hemisphere was closed to further European colonization and that any attempt by European nations to interfere in the Americas would be viewed as a hostile act against the United States. This doctrine not only safeguarded the newly independent Latin American nations but also set the stage for the U.S. to emerge as a dominant power in the Western Hemisphere (britannica.com).