By the Treaty of Paris (marked Dec. 10, 1898), Spain disavowed all case to Cuba, surrendered Guam and Puerto Rico to the United States, and exchanged sway over the Philippines to the United States for $20 million. The Spanish-American War was an imperative defining moment ever of opponents.
By the Treaty of Paris is your answer