John V of Portugal
In foreign relations, he struggled with both John V of Portugal and the Jansenists in France.