On 9 August when he learned of the dangers surrounding the royal family, he went to the Tuileries Palace. He was entrusted by the King with the command of the troops who would defend the Tuileries the next day, 10 August 1792. During the attack, the defense is swept away. Mailly escapes the massacre and receives help to escape.