In the 1898 Treaty of Paris, which ended the Spanish-American War, Spain ceded the Philippines, Puerto Rico, and Guam to the United States.