He returned to Ireland and fought at the
Boyne in 1690. Following William's victory at the Boyne, Cox drafted the
Declaration of Finglas offering full protection (in effect a
pardon) to all
Jacobites who laid down arms by 1 August 1690, (later extended to 25 August), other than those described as "the desperate leaders of the Rebellion". The King praised Cox's drafting of the Declaration highly, saying that he had not needed to change a word of it. He was
knighted on 5 November 1692 by
King William, who had great respect for him, and then became a
baronet on 21 November 1706. He was made Recorder of
Waterford and second justice of the
Court of Common Pleas (Ireland) in 1690. He was subsequently appointed military governor of Cork and
Constable of Castle Maine in 1691, and a member of the
Privy Council of Ireland in 1692. He approved of the
Treaty of Limerick, which offered generous terms to the defeated Jacobites. When it became clear that the Government would not honour the terms of the Treaty, Cox denounced this as a breach of trust, and was in political disgrace for a time as a result, being dismissed from the Privy Council in 1695. This was only a temporary career setback: he became
Chief Justice of the Irish Common Pleas in 1701, and was reappointed to the Privy Council the same year. Although he maintained that as a matter of simple justice, they should receive the toleration they were promised under the Treaty of Limerick, Cox was no friend to
Roman Catholics. He fully supported the strict enforcement, and indeed the extension, of the
Penal Laws, and as Lord Chancellor, he oversaw the passage of the
Popery Act 1704 (2 Anne c. 6 (I)), which was generally seen as an effort to eliminate the Catholic landowning class entirely. He became Lord Chancellor of Ireland in 1703 and then
Lord Chief Justice of the Queen's Bench from 1711 to 1714, after being dismissed in 1707 for his opposition to the proposed repeal of the
sacramental test for religious
dissenters in that year. He escaped
impeachment when his great patron Ormonde defected to the
Jacobite cause in 1715 and fled to
France, due to lack of hard evidence of his complicity in Ormonde's treason. ==Publications ==