After the battles of San Juan Hill and El Caney, the American advance halted. Spanish troops successfully defended Fort Canosa, allowing them to stabilize their line and bar the entry to Santiago. The Americans and Cubans forcibly began a siege of the city. During the nights, Cuban troops dug successive series of "trenches" (raised parapets), toward the Spanish positions. Once completed, these parapets were occupied by U.S. soldiers and a new set of excavations went forward. The Spanish forces surrendered on 17 July. In the Treaty of Paris (1898), Spain renounced its sovereignty over Cuba without naming a receiving country. Cuba then established its own civil government, which was recognized by the United States as the legal government of Cuba upon the announcement of the termination of United States Military Government (USMG) jurisdiction over the island on May 20, 1902. This date is celebrated as Independence day for the Republic of Cuba.