James II became king of Great Britain on 6 February 1685. He had become a convert to the Roman Catholic church in 1669 but when he came to the throne he had strong support from Anglicans as well as Catholics. However rebellions arose, which James put down but he began to distrust Protestants and began to appoint Roman Catholic officers to the army. He then went further, appointing only Catholics as judges and officers of state. Whenever a position at Oxford or Cambridge became vacant, the king appointed a Roman Catholic to fill it. Newton was a staunch Protestant and strongly opposed to what he saw as an attack on the University of Cambridge.
When the King tried to insist that a Benedictine monk be given a degree without taking any examinations or swearing the required oaths, Newton wrote to the Vice-Chancellor:-
Be courageous and steady to the Laws and you cannot fail.
The Vice-Chancellor took Newton's advice and was dismissed from his post. However Newton continued to argue the case strongly preparing documents to be used by the University in its defence. However William of Orange had been invited by many leaders to bring an army to England to defeat James. William landed in November 1688 and James, finding that Protestants had left his army, fled to France. The University of Cambridge elected Newton, now famous for his strong defence of the university, as one of their two members to the Convention Parliament on 15 January 1689. This Parliament declared that James had abdicated and in February 1689 offered the crown to William and Mary. Newton was at the height of his standing - seen as a leader of the university and one of the most eminent mathematicians in the world. However, his election to Parliament may have been the event which let him see that there was a life in London which might appeal to him more than the academic world in Cambridge.
After suffering a second nervous breakdown in 1693, Newton retired from research. The reasons for this breakdown have been discussed by his biographers and many theories have been proposed: chemical poisoning as a result of his alchemy experiments; frustration with his researches; the ending of a personal friendship with Fatio de Duillier, a Swiss-born mathematician resident in London; and problems resulting from his religious beliefs. Newton himself blamed lack of sleep but this was almost certainly a symptom of the illness rather than the cause of it. There seems little reason to suppose that the illness was anything other than depression, a mental illness he must have suffered from throughout most of his life, perhaps made worse by some of the events we have just listed.
Newton decided to leave Cambridge to take up a government position in London becoming Warden of the Royal Mint in 1696 and Master in 1699. However, he did not resign his positions at Cambridge until 1701. As Master of the Mint, adding the income from his estates, we see that Newton became a very rich man. For many people a position such as Master of the Mint would have been treated as simply a reward for their scientific achievements. Newton did not treat it as such and he made a strong contribution to the work of the Mint. He led it through the difficult period of recoinage and he was particularly active in measures to prevent counterfeiting of the coinage.
In 1703 he was elected president of the Royal Society and was re-elected each year until his death. He was knighted in 1705 by Queen Anne, the first scientist to be so honoured for his work. However the last portion of his life was not an easy one, dominated in many ways with the controversy with Leibniz over which had invented the calculus.
Given the rage that Newton had shown throughout his life when criticised, it is not surprising that he flew into an irrational temper directed against Leibniz. We have given details of this controversy in Leibniz's biography and refer the reader to that article for details. Perhaps all that is worth relating here is how Newton used his position as President of the Royal Society. In this capacity he appointed an "impartial" committee to decide whether he or Leibniz was the inventor of the calculus. He wrote the official report of the committee (although of course it did not appear under his name) which was published by the Royal Society, and he then wrote a review (again anonymously) which appeared in the Philosophical Transactions of the Royal Society.
Newton's assistant Whiston had seen his rage at first hand. He wrote:-
Newton was of the most fearful, cautious and suspicious temper that I ever knew.
J J O'Connor and E F Robertson