Babington Plot
The Babington Plot was a plot in 1586 to assassinate Queen Elizabeth, a Protestant, and put the rescued Mary, Queen of Scots, her Roman Catholic cousin, on the English throne. It led to the execution of Queen Mary Stuart of Scotland as a direct result of a letter sent by Mary (who had been imprisoned for 18 years since 1568 in England at the behest of Elizabeth) in which she consented directly to the assassination of Elizabeth.
The long-term goal of the plot was the invasion of England by the Spanish forces of King Philip II and the Catholic League in France, leading to the restoration of the old religion. The plot was discovered by Elizabeth's "spymaster" Sir Francis Walsingham and used to entrap Mary for the purpose of removing her as a claimant to the English throne.
The chief conspirators were Anthony Babington, a young recusant recruited by John Ballard, a Jesuit priest who desired to rescue the Scottish Queen; Robert Poley; Gilbert Gifford, and Thomas Phelippes, a Walsingham spy agent and cryptanalyst. The turbulent Catholic deacon Gifford had been in Walsingham's service since the end of 1585 or the beginning of 1586. Gifford obtained a letter of introduction to Queen Mary from a confidant and spy for her, Thomas Morgan. Walsingham then placed double agent Gifford and spy decipherer Phelippes inside Chartley Castle, where Queen Mary was imprisoned. Gifford organised the Walsingham plan to place Babington's and Queen Mary's encrypted communications into a beer barrel cork which were then intercepted by Phelippes, decoded and sent to Walsingham.