Awesome preparation + divine intervention is a great formula for victory against all odds.
The Turks were not slouches as sailors either. In those days, Europeans called any Islamic enemy "Turks", although technically many of them were actually from the Maghreb States. One man on my family tree was captured and enslaved for a time by such Turks. For him, at least (and a handful of fellow captives), the story had a happy ending as you can see at the link.
Awesome preparation encourages divine intervention.
Just before a battle, Napoleon was asked, "Whose side is God on?". He replied, "The one with the most artillery."
I suspect divine intervention is predicated on that observation.