Throughout the trial Lally fought against Joly de Fleury 's charges but on 6 May 1766 he was convicted and sentenced to death .
The trial lasted for two years .
Throughout the trial , which lasted for two years , Lally fought against Joly de Fleury 's charges but on 6 May 1766 he was convicted and sentenced to death .