Complex sentence: It was ceded to Spain by France after the British victory in the Seven Years War, when the British gained Florida in exchange with Spain for French lands west of the Mississippi River.
Split into simpler sentences: It was ceded to Spain by France after the British victory in the Seven Years War. When the British gained Florida in exchange with Spain for French lands west of the Mississippi River.