 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 their common enemy, Great Britain, which had caused Spain substantial losses during the Seven Years' War.