Answer
Havana was spared from Morgan's attacks due to the Spanish authorities having been forewarned of his plans. This allowed them to swiftly assemble a formidable defensive force, consisting of both naval and land-based units. Recognizing the overwhelming odds stacked against him, Morgan wisely chose to bypass Havana and redirect his efforts towards other, more vulnerable targets along the Caribbean coast.