President Rodrigo Duterte had decided to retain the Visiting Forces Agreement (VFA) "in light of the political and other developments in the region," said Philippine Foreign Affairs Secretary Teodoro Locsin Jr. in a social media post Tuesday.
The agreement, signed in 1988, gives US military aircraft and vessels free entry into the Philippines and relaxes visa restrictions for US military personnel.
"Our long-standing alliance has benefited both countries, and we look forward to continued close security and defense cooperation with the Philippines," said a statement from the US Embassy in Manila.
The Philippines was once home to two of the America's largest military bases outside of the US: Clark Air Base and Subic Bay Naval Station.
Although those ceased to be US bases in the early 1990s, US forces still had access to them under the VFA and Manila maintained strong military ties with Washington.
But over the past few years, Duterte has been tilting away from those historical ties with the US and toward China, which has offered a closer economic relationship with Manila.
"I need China. More than anybody else at this point, I need China," Duterte said before flying to China in April 2018.
Compared with his predecessors, Duterte has viewed the Philippines' ongoing territorial dispute over the South China Sea as more negotiable.
Both the Philippines and China are among among several nations with overlapping claims to the sea, or parts of it. China claims almost all of the South China Sea's 1.3 million square miles as its own despite other claimants having borders that are far closer to the disputed waters.
China, however, has been stepping up its military presence on islands also claimed by the Manila.
In the past two months, the People's Liberation Army has moved advanced anti-submarine warfare and reconnaissance aircraft to Fiery Cross Reef, known as Kagitingan in the Philippines, in the Spratly Islands chain.
Beijing has also made Fiery Cross part of its southern Hainan province, creating two new administrative districts covering the South China Sea that are headquartered in the Paracel Islands, another island group with disputed claims.
An average of 18 Chinese vessels have been around the island each day, according to an AMTI satellite analysis published in March, hampering Philippine attempts to build up infrastructure there.
On Wednesday, Locsin indicated that the Philippines sees the US playing a role in the region for some time to come.
"We look forward continuing our strong military partnership with the United States, even as we continue to reach out to our regional allies in building a common defense towards enduring stability, peace and continuing economic progress and prosperity in our part of the world," he said.
CNN's Sophie Jeong contributed to this report.