at the service of the catholic monarchy he was viceroy of aragon and sardinia