Almeida was not just to be the captain-major. He was also granted the elevated title of viceroy, nominally with executive power to act in the king’s place. What this meant in practice was spelled out a week later in the regimento, the instructions given to him by the king. They ran to 101 closely written pages, containing 143 different items divided into chapters and subchapters that revealed both the microscopic level of detail at which the king wished to direct his appointee and the breathtaking scale of his ambition.

