Sir James Stewart (or Steuart) of Goodtrees (1635–1713) was a Scottish lawyer, political opponent of the Stuarts monarchy, and reforming Lord Advocate of Scotland from 1692 to 1713.
He was called to the bar on 20 November 1661, but lost almost all his practice defending his father against a charge of embezzlement.
Returning to Scotland in 1679, he again got into trouble in 1681, when among the papers of Archibald Campbell, 9th Earl of Argyll a memorandum in his hand was found, reflecting on the government.
[3] On account of his supposed influence with the presbyterian party, he was received into favour, and employed to conduct crown cases along with George Mackenzie.
[2] In 1692, after the Glorious Revolution, Stewart was appointed Lord Advocate, and during his term of office introduced legal reforms in Scotland.
In December 1696 Stewart was the prosecutor in the last execution for blasphemy in the United Kingdom with the case of Thomas Aikenhead.
[5] In 1669 Stewart published a political pamphlet Jus Populi Vindicatum, or the People's Right to defend themselves, and their Covenanted Reign vindicated, as a reply to Andrew Honeyman's Survey of Naphtali (1668).