Exactly. If the Republicans won the Civil War, Hitler would have marched right into Spain, and probably would have taken Gibraltar.
Gibraltar was a very key piece of real estate. If Franco would have thrown with Hitler and sealed off the Mediterranean, with the help of the Luftwaffe, the war in Europe would have been much different.