The war officially ended four months later, when the U.S. and Spanish governments signed the Treaty of Paris on December 10, 1898. Apart from guaranteeing the independence of Cuba<span>, the treaty also forced </span>Spain<span> to cede </span>Guam<span> and </span>Puerto Rico<span> to the United States.</span>