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, the treaty also forced Spain to cede Guam and Puerto Rico to the United States.