The Ottoman base in Algiers made Turkish help strategically plausible for Spanish Muslims.

Evidence

No longer was el Gran Turco, the Great Turk, so far away that no Spanish Muslim could realistically hope for his help. From the Ottoman garrison in Algiers, Valencia was within easy reach. What could be achieved by Algerian seaborne raids was limited, but ¡Moros en la costa! “The Moors have come ashore!” became a dreaded cry, and the need for Spain to defend its Mediterranean coastline was a considerable drain on resources. — L. P. Harvey, Muslims in Spain, 1500 to 1614, 1556