Complex sentence: It may be he was awaiting news of the planned crusade and on learning that, despite the withdrawal of his allies, King Alfonso still intended to go to war, he finally set sail for Spain.
Split into simpler sentences: It may be he was awaiting news of the planned crusade. It would seem that when Douglas learned that, despite the withdrawal of his allies, King Alfonso still intended to go to war, he finally set sail for Spain.