It depends on the jurisdiction and the state legislation where you are. Some countries who have abolished capital punishment still keep this as as the ultimate sanction for treason. Even where it is...
the year was 1776
In 1779- During the Revolutionary War
Riel was found guilty of having committed the criminal offence of treason. At the time, the punishment for treason was death by hanging.