He was placed in the office of the politician Jean Mailhe, who was advocate before the council of state and the court of cassation and was proscribed at the second restoration. Barrot eventually succeeded him in both positions. His dissatisfaction with the government of the restoration was shown in his conduct of some political trials. For his opposition in 1820 to a law by which any person might be arrested and detained on a warrant signed by three ministers, he was summoned before a court of assize, but acquitted.