Answer: Serving as a spy for another country whom your own nation considers an enemy is considered treason.
Explanation: As stated in the question, treason is defined as the betrayal or attempt to overthrow the government of one's own country. Serving as a spy for another country is considered treason because the spy provides intel or private information to another country for exploitation purposes.