Around 1608 William Adams, an English navigator contacted the interim governor of the Philippines, Rodrigo de Vivero y Velasco on behalf of Tokugawa Ieyasu, who wished to establish direct trade contacts with New Spain. Friendly letters were exchanged, officially starting relations between Japan and New Spain. From 1565 to 1821, the Philippines was governed as a territory of the Viceroyalty of New Spain from Mexico, via the "Royal Audiencia" of Manila, and administered directly from Spain from 1821 after the Mexican revolution, until 1898.