Why was American attack on Manila Harbor and the Philippines important for a quick American victory in Spanish-American war?

The attack on Manila Harbor and the Philippines was important for a quick American victory in the Spanish-American War because it allowed the United States to gain control of the strategic port of Manila, which was a major Spanish stronghold in the Pacific. This allowed the US to gain a foothold in the region and to cut off Spanish supply lines, which ultimately led to a swift American victory.