Who had the Spanish colonies allied with?