As his first official position, he was appointed special ambassador to Madrid (1574) in order to negotiate the marriage of King Sebastian of Portugal to Princess Maximiliana of Bavaria (daughter of Duke Albert V of Bavaria), but the mission failed.
Later, in 1578, along with his father, he participated in the royal crusade to Morocco, and he fell prisoner to Ahmad al-Mansur's armies during the Battle of Ksar El Kebir.