system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: in the military, what happens when a lower ranking officer has to arrest/detain a commanding officer?

You see it all the time in movies and video games - a high ranking officer turns out to be the bad guy and they eventually get found out and arrested. When the order is given for their arrest by a subordinate officer, the bad guy always says something along the lines of: 

"I am your commanding officer, you can't arrest me!" 


When (if) this happens in real life, say the US or UK military, how does this play out?

Sorry if my terminology is a bit off!
gpt
This is a movie magic trope, not reality.

If some weird crazy thing happened where a senior officer was being arrested (probably for being accused of some major crime, like maybe they are accused of rape for example) the military police, would come in and arrest them. These are basically the same situation as any police force so rank doesn't matter, they're cops. It would not be his own unit, they aren't cops, the cops would do it.

If you're thinking some crazy scenario where a junior officer thinks their boss is doing something weird and has their troops detain him, thats movie magic.