 The viceroy's position was revived for the rich empires of Mexico and Peru.After 1567 Panama was attached to the Viceroyalty of Peru but retained its own "audiencia".Beginning early in the 16th century, Nombre de Dios in Panama, Vera Cruz in Mexico, and Cartagena in Colombia were the only three ports in Spanish America authorized by the crown to trade with the homeland.