Answer
Prior to ascending to the throne as King John IV of Portugal, he was the 8th Duke of Braganza. This distinguished title placed him at the forefront of Portuguese nobility and granted him immense wealth, influence, and power. As the Duke of Braganza, he played a significant role in Portuguese politics and society, assuming prominent positions and responsibilities within the Portuguese realm.