Complex sentence: By July 18, the Spanish Army of Africa had seized all the Spanish Morocco and crushed the resistance, but most of the Republican Navy remained loyal to the government.
Split into simpler sentences: By July 18, the Spanish Army of Africa had seized all the Spanish Morocco and crushed the resistance. Nevertheless most of the Republican Navy remained loyal to the government.