https://en.wikipedia.org/wiki/Johann_Patkul
Born as a subject to the Swedish Crown, he protested against the manner of King Charles XI of Sweden's reduction in Livonia, enraging the king, who had him arrested and sentenced to mutilation and death (1694). Patkul fled from the Swedish Empire to continental Europe, and played a key role in the secret diplomacy (1698-1699) allying Peter I of Russia, Augustus II the Strong of Saxony and the Poland–Lithuania - as well as Christian V and his successor Frederick IV of Denmark–Norway - against Charles XII of Sweden, triggering the Great Northern War of 1700-1721.
Patkul was extradited and executed by breaking on the wheel in 1707, an incident which, given his diplomatic immunity, infuriated opinion against the Swedish king.