Spain provided financing for the final Siege of Yorktown in 1781 with a collection of gold and silver in Havana, then Spanish Cuba. Spain was allied with France through the Bourbon Family Compact and the Revolution was an opportunity to confront their common enemy, Great Britain.