Given the reference text about the Spanish-American war, when and how did the war end?
The Spanish-American war ended on August 13, 1898 with the 1898 Treaty of Paris. The treaty ceded ownership of Puerto Rico, Guam, and the Philippines from Spain the to the United States.