 Cavite City became the main seaport of the City of Manila and the staging port for the Manila-Acapulco Galleon Trade.After the demise of the galleon trade, the shipyard became the Spanish Arsenal.When the sovereignty of the Philippines was ceded to the Americans after the Spanish–American War, the U.S. took over all the military stations left by the Spaniards including the Cavite Naval Yard.