Portugal's empire was extensive, and the country thrived on:

corn from the new world

trade

the adventures of exploration

being rejected by foreign countries