It took at least four months to sail across the Pacific Ocean from Manila to Acapulco, and the galleons were the main link between the Philippines and the viceregal capital at Mexico City and thence to Spain itself. Many of the so-called "Kastilas" or Spaniards in the Philippines were actually of Mexican descent, and the Hispanic culture of the Philippines is somewhat close to Mexican culture. Soldiers and settlers recruited from Mexico and Peru were also gathered in Acapulco before they were sent to settle at the presidios of the Philippines. Even after the galleon era, and at the time when Mexico finally gained its independence, the two nations still continued to trade, except for a brief lull during the Spanish–American War.