With others, Bacon was appointed to investigate the charges against Essex. A number of Essex's followers confessed that Essex had planned a rebellion against the Queen. Bacon was subsequently a part of the legal team headed by the Attorney General Sir Edward Coke at Essex's treason trial. After the execution, the Queen ordered Bacon to write the official government account of the trial, which was later published as "A DECLARATION of the Practices and Treasons attempted and committed by Robert late Earle of Essex and his Complices, against her Majestie and her Kingdoms ..." after Bacon's first draft was heavily edited by the Queen and her ministers.