A soldier stationed to keep watch and guard a post. Often used in military contexts.
哨兵が門の前に立っていた。
A sentry stood in front of the gate.
Compound of 哨 (watch, guard) and 兵 (soldier). The exact historical derivation is uncertain, but the spelling is conventionally associated with the meaning 'sentry'.