Original: In 1898, the United States won the Spanish-American War and occupied Cuba, Puerto Rico and the Philippines, ending Spanish rule in America.
Simplified: The remaining Spanish colonies, Cuba and Puerto Rico, were lost in 1898 as a consequence of the Spanish-American War.