In 1763, Spain traded Florida to Great Britain in exchange for control of Havana, Cuba, which had been captured by the British during the Seven Years' War. wikipedia
Why did Spain trade Florida to the British in exchange for Havana? Florida is much larger than Havana, and Spain still controlled about 80% of Cuban territory.