The Spanish also attempted to lift the blockade on the port of Manzanillo twice, but failed both times. The Spanish fleet also attempted to escape Santiago harbor, but was destroyed by U.S. gunboats and armored cruisers. After this victory, U.S. forces laid siege to Santiago de Cuba for 14 days, until the Spanish forces surrendered, but there were several skirmishes afterwards. The Spanish managed to cut the United States blockade at Manzanillo, but the Americans sunk two Spanish ships at Nipe Bay. The Americans also tried to land at Mani-Mani, which was west of Havana, but were repulsed by the Spanish. On 23 July, Americans landed close to the port of Ponce, Puerto Rico. Two days later, there was a small skirmish at Yauco, which was won by the Americans. The Spanish retreated and attempted to destroy rail lines to Ponce, but failed to. On 5 August, American forces marched into the town of Guayama, but the Spanish deserted the town several hours earlier. From 8 to 9 August, an American battalion captured the mountain at Coamo, Puerto Rico, on the road to the port of Ponce. At the same time, there was an inconclusive battle at Fajardo, which led to the capture and desertion of a lighthouse. One day later, the Americans captured Silva Heights. The Americans also landed near Mayaguez, and captured the town with no resistance. At the Battle of Asomante, the US forces took Asomante and captured many Spanish prisoners. At the same time, American forces also captured Manila. These two battles led to an armistice agreement, which quickly led to the Treaty of Paris, which ended the Spanish–American War. The 1898 Treaty of Paris, which was the result of the American victory in the war, was negotiated on terms favorable to the U.S. which allowed it temporary direct control of Cuba and ceded ownership of Puerto Rico, Guam and the Philippine islands. The cession of the Philippines involved payment of $20 million ($ today) to Spain in order to cover the Spanish infrastructure. The U.S. installed a military government in Cuba immediately after the Treaty of Paris, and eventually let it become an independent republic in 1902. The Philippines also rebelled against U.S. control, which led to the Philippine–American War lasting from 1899 to 1902. The Spanish also sold the rest of their Pacific islands to Germany under the German–Spanish Treaty. Pacific Theater Philippine campaign