The Treaty of Paris (1898) officially ended the Spanish-American War. The United States acquired Guam, Puerto Rico, and the Philippines as territories. Cuba technically gained its independence, but United States soldiers remained in the country for years, commonly intervening in the new nation's politics.