Original: This was later followed by the return of the monarchy to Madrid, then the creation of the Second Spanish Republic, preceding the Spanish Civil War.
Simplified: Later the monarchy was restored, but then there was a Second Spanish Republic followed by the Spanish Civil War.