<P> Spain's role in the independence of the United States was part of its dispute over colonial supremacy with the Kingdom of Great Britain . Spain declared war on Britain as an ally of France, and provided supplies and munitions to the American forces . </P> <P> Beginning in 1776, it jointly funded Roderigue Hortalez and Company, a trading company that provided critical military supplies . Spain also provided financing for the final Siege of Yorktown in 1781 with a collection of gold and silver in Havana, Cuba . Spain was allied with France through the Bourbon Family Compact and also viewed the Revolution as an opportunity to weaken its enemy Great Britain, which had caused Spain substantial losses during the Seven Years' War . As the newly appointed Prime Minister, José Moñino y Redondo, Count of Floridablanca, wrote in March 1777, "the fate of the colonies interests us very much, and we shall do for them everything that circumstances permit". </P>

What side was spain on in the revolutionary war
find me the text answering this question