History of the Philippines (1521–1898) Castilla". Legazpi became the country's first governor-general. With time, Cebu's importance fell as power shifted north to Luzon. The archipelago was Spain's outpost in the orient and Manila became the capital of the entire Spanish East Indies. The colony was administered through the Viceroyalty of New Spain (now Mexico) until 1821 when Mexico achieved independence from Spain. After 1821, the colony was governed directly from Spain. During most of the colonial period, the Philippine economy depended on the Galleon Trade which was inaugurated in 1565 between Manila and Acapulco, Mexico. Trade between Spain and the Philippines was via the Pacific
Mexican War of Independence of Iguala, Iturbide persuaded Guerrero to join his forces in support of this conservative independence movement. A new army, the Army of the Three Guarantees, was placed under Iturbide's command to enforce the Plan of Iguala. The plan was so broadly based that it pleased both patriots and loyalists. The goal of independence and the protection of Roman Catholicism brought together all factions. Iturbide's army was joined by rebel forces from all over Mexico. When the rebels' victory became certain, the Viceroy resigned. On August 24, 1821, representatives of the Spanish crown and Iturbide signed the Treaty of Córdoba, which