Treason

Treason is the crime of attacking a state authority to which one owes allegiance.[1]
This typically includes acts such as participating in a war against one's native country, attempting to overthrow its government, spying on its military, its diplomats, or its secret services for a hostile and foreign power, or attempting to kill its head of state.
A person who commits treason is known in law as a traitor.[2]