 He had to restore the peace after the mismanagement of his predecessors, and was confronted with a serious epidemic in the Bahia province.In 1687 he returned to Portugal and was appointed counsellor of war.At the outbreak of the War of Spanish Succession (1702–1715), King Peter II of Portugal initially supported France but on 16 May 1703, Portugal and England signed the Methuen Treaty.