Original: This left only Cuba, the Philippine Islands, Guam and Puerto Rico as part of the Spanish empire until the Spanish - American War in 1898.
Simplified: However, Cuba, Puerto Rico and Spanish East Indies (including Mariana Islands and the Philippines) remained a part of the Spanish crown until the Spanish - American War (1898).