Spain’s military was outmatched from the opening of hostilities, and an armistice signed on August 12, 1898, brought an end to the fighting. The United States occupied Cuba and took possession of Guam, Puerto Rico, and the Philippines. The bloody struggle for independence in the Philippines resumed in 1899, the U.S. having replaced Spain as the colonial power.