 He succeeded in obtaining peace with Austria through the 1801 Treaty of Luneville and with Britain in the 1802 Treaty of Amiens.He could not prevent the renewal of war in 1803 but by 1805, he opposed his emperor's renewed wars against Austria, Prussia, and Russia.He resigned as foreign minister in August 1807, but retained the trust of Napoleon and conspired to undermine the emperor's plans through secret dealings with Tsar Alexander of Russia and Austrian minister Metternich.