My understanding was always that the Civil War was a fight of democracy and socialism vs fascism and monarchy. However, Stanley Payne seems to argue that the Popular Front unjustly seized power, and the Communists intended to create a Soviet style dictatorial system, and that was what started the war.
There's always more that can be said, but you might enjoy this fantastic answer from /u/crrpit;