Question: when did cuba gain its independence from spain
Answer: However , the Spanish -- American War resulted in a Spanish withdrawal from the island in 1898 , and following three - and - a-half years of subsequent US military rule , Cuba gained formal independence in 1902 .