system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Is there any way a soldier can disobey orders on moral grounds?
gpt
Sort of!

Under the Uniform Code of Military Justice failure to obey a lawful order is a criminal offense.  If the order is unlawful, there is no need to comply, and there is possibly a duty to challenge the order.

However legal and moral are not always the same thing.