Complex sentence: France had allied itself with the Americans in February 1778 and additionally signed a secret treaty with Spain on 12 April 1779, which brought Spain into the war against Great Britain.
Split into simpler sentences: France had allied itself with the Americans in February 1778 and signed a secret treaty with Spain On 12 April 1779. This brought Spain into the war against Great Britain.