the title was used when an empire has widespread territories which the monarch would rarely visit. it was used regularly by the spanish, portuguese, russian, habsburg and british empires. in the british empire a viceroy was only appointed in the case of british india, and only then for lord canning in 1858. otherwise it was just a ceremonial name for the governors-general.