As master of Spain's foreign policy, Floridablanca sought prominently to restore the economic well-being of Spain. He concluded trade agreements with Morocco and the Ottoman Empire and believed that good relations with Great Britain were key to Spain's growth. In spite of this, he was drawn reluctantly into the American War of Independence on the side of France and the American rebels. The war generally went well for Spain and Floridablanca succeeded in restoring much of Spain's prestige during the conflict and in 1782 Britain returned the island of Menorca, in the Baleares, and Florida to Spain. However attempts to capture Gibraltar, Jamaica and invade Britain met with failure. During the war Spain negotiated for a separate peace with Britain, in spite of its alliance with France. Talks were held between Richard Cumberland and Thomas Hussey. These discussions ultimately fell through, and Spain was a signatory of the Peace of Paris in 1783.