When a person acts against their country.
When a person acts against their country, treason. In history, treason is when someone betrays their own country, often by aiding its enemies.