 Complete the following phrase:  Spain was caught up in European events of the Napoleonic era that led to its loss of empire in Spanish America. Spain was Frances ally, but it had tried to avoid being drawn directly into the ongoing conflict between Napoleons France and Britain. War broke out in 1804 after a British squadron 