Spain played an important role in the independence of the United States, as part of its conflict with Britain. Spain declared war on Britain as an ally of France, itself an ally of the American colonies. Most notably, Spanish forces attacked British positions in the south and captured West Florida from Britain in the Siege of Pensacola. This secured the southern route for supplies and closed off the possibility of any British offensive through the western frontier of United States via the Mississippi River. Spain also provided money, supplies and munitions to the American forces.
<span>Assuming that this is referring to the same cartoon that was posted before with this question, its purpose is to "</span>support nativist anti-immigration sentiment" since it paints immigrants in a bad light.