As a political term, "Tory" entered English politics during the Exclusion Bill crisis of 1678–1681. The Whigs (initially an insult—"whiggamore", a cattle driver), it was originally a Scottish insult for the Covenanter faction in Scotland who opposed the Engagers: a faction who supported Charles I during the Second English Civil War and supported the Whiggamore Raid that took place in September 1648) were those who supported the exclusion of James, the Duke of York from the succession to thrones of Scotland and England and Ireland (the "Petitioners") and the Tories (also an insult, derived from the Middle Irish word tóraidhe, modern Irish tóraí—"outlaw", "robber", from the Irish word tóir, meaning "pursuit" since outlaws were "pursued men") were those who opposed the Exclusion Bill (the Abhorrers).
"The court party reproached their antagonists with their affinity to the fanatical conventiclers in Scotland, who were known by the name of Whigs: The country party found a resemblance between the courtiers and the popish banditti in Ireland, to whom the appellation of Tory was affixed. And after this manner, these foolish terms of reproach came into public and general use; and even at present seem not nearer their end than when they were first invented." (David Hume, The history of England. Vol. VIII, chap. LXVIII, p. 126. London, 1797).