I'm not too sure what you are asking, however if you are looking for what ended the Spanish War, Island of Puerto, it would be the Treaty of Paris of 1898.
The Spanish War was fought between America and Spain, and took place in Cuba, Puerto Rico, Guam, and the Philippines.