What sort of actions could Algiers, Tunis, and Tripoli have done to prevent the Spanish from taking power?

by [deleted]
Prufrock451

Sorry, at what point in history do you mean? Like, could the North African powers have stopped the Reconquista?