Complex sentence: With the war against Spain (1859--1860) came direct involvement in European affairs--although the independence of Morocco was guaranteed in the Conference of Madrid (1880), the French gained ever greater influence.
Split into simpler sentences: With the war against Spain (1859--1860) came direct involvement in European affairs. Although the independence of Morocco was guaranteed at the Conference of Madrid (1880), the French gained ever greater influence.