The viceroy had to overcome the distance and poor communication with the royal court in Madrid. It proved almost impossible for the Spanish viceroys both to comply with the demands of the crown and to satisfy the aspirations of the Sicilians – a situation also apparent in Spain's colonies in Latin America. The viceroys secured territorial control and sought to guarantee the loyalty of vassals by distributing patronage in the form of offices and grants in the name of the king. The monarchy, however, also exercised its power through royal councils and independent entities, such as the agents of the Inquisition and visitadores or inspectors. Local spheres of royal influence were never clearly defined, and various local political entities within the viceregal system competed for power, often rendering Sicily ungovernable.