Spain owned territories in the Americas including Cuba and Puerto Rico, but Cubans revolted for independence which Spain violently suppressed, angering Americans and leading the U.S. to declare war on Spain in 1898 over the sinking of the U.S.S. Maine in Havana harbor. The war resulted in U.S. victory and the acquisition of Spanish territories like Puerto Rico, Guam, and the Philippines.