Chateaubriand sided again with the Court after the murder of the Duc de Berry (1820), writing for the occasion the "Mémoires sur la vie et la mort du duc". He then served as ambassador to Prussia (1821) and the United Kingdom (1822), and even rose to the office of Minister of Foreign Affairs (28 December 1822 – 4 August 1824). A plenipotentiary to the Congress of Verona (1822), he decided in favor of the Quintuple Alliance's intervention in Spain during the "Trienio Liberal", despite opposition from the Duke of Wellington. Chateaubriand was soon relieved of his office by Prime Minister Joseph de Villèle on 5 June 1824, over his objections to a law the latter proposed that would have resulted in the widening of the electorate. Chateaubriand was subsequently appointed French ambassador to Genoa.