A viceroyalty is a political territory governed by a viceroy, who acts as the representative of the monarch in colonial regions. In the context of Spanish colonization of the Americas, viceroyalties were established to oversee vast territories and maintain control over colonial administration, trade, and relations with indigenous peoples.