Why did Spanish fight the French for Florida?

Spain did not fight the French for Florida. In 1763, as a result of the Seven Years' War, Spain ceded Florida to Britain in exchange for the return of Havana, which the British had captured in 1762.
Copyright Wanderlust World © https://www.ynyoo.com