Appointment His appointment to the viceregality has been attributed to the influence of the Mexican deputies then representing New Spain in the Cortes in accordance with the
Constitution of 1812. The influence of
Miguel Ramos Arizpe has especially been noted. His appointment has also been attributed to the Spanish liberals who had chosen O’Donoju with the hopes that his liberal principles could help extinguish the Mexican movement for independence.
Arrival in New Spain Juan O'Donojú arrived in
Veracruz on the ship the
Asia on August 3, 1821. Upon his arrival however he found that the overwhelming majority of the country was in the hands of the revolutionaries. Only the garrisons of
Mexico City,
Veracruz, and
Acapulco remained loyal to Spain. He was faced with the choice of either leaving the country immediately or attempting to come to some sort of arrangement with the rebels. He released a manifesto upholding the liberalism then reigning in Spain, and asked for Mexicans to send their grievances to the Spanish
Cortes which was already working on elevating New Spain to a new level of autonomy, which could include electing their own leader. He entered into friendly communications with colonel
Santa Anna, head of the garrison at Veracruz, and arranged an agreement on August 5 for the Spanish officials to enter the city on friendly terms. He then sent commissioners to Agustín de Iturbide inviting him to a conference, which was agreed to take place at the villa of
Córdoba. He was glad to leave Veracruz as two of his nephews had contracted and died from
yellow fever, known to be endemic to the port. Santa Anna escorted him as far as Jalapa, by orders of Iturbide.
Recognition of Mexican Independence With Iturbide he signed the
Treaty of Córdoba, granting official Spanish sanction to the
Plan of Iguala, with Iturbide slightly altering the condition that the monarch which was to be chosen for Mexico did not need to be a member of the Spanish royal family. The Spanish governor of Veracruz, Jose Dávila did not agree with such arrangements and resolved to retreat to the fortress of
San Juan de Ulúa to hold his ground. The Spanish major general
Francisco Novella in Mexico City also refused to recognize the Treaty of Cordoba, but he was reluctantly forced to abandon the capital with the Spanish expeditionary troops. O'Donojú entered Mexico City on the afternoon of September 26, and dined with the
Ayuntamiento before housing himself at the
Casa de Moncada. On September 27, he received Iturbide at the National Palace, and went out with him to the main balcony to watch the entrance of the
Army of the Three Guarantees. On September 28 he presented himself at the main hall of the palace to install the provisional governmental junta, and he signed the act of independence. ==Personal life==