Spain declared war on Britain as an ally of France, itself an ally of the American colonies, and provided supplies and munitions to the American forces. Beginning in 1776, it jointly funded Roderigue Hortalez and Company, a trading company that provided critical military supplies.