also: ぐんやく
noun
Refers to the duty of serving in the armed forces, often in a historical or legal context.
彼は軍役を終えて故郷に戻った。
He returned to his hometown after completing his military service.
当時、軍役は国民の義務とされてい
At that time, military service was considered a duty of the people.
兵役 is the more common modern term for military service, while 軍役 can carry a slightly older or more formal nuance.
Compound of 軍 (army, military) and 役 (service, duty). The reading ぐんえき is the standard on'yomi combination.