Military occupation occurs when a foreign military takes control of a territory without annexing it, often leading to complex legal and humanitarian issues. It is governed by international law, particularly the Hague Regulations and the Geneva Conventions, which aim to protect the rights of civilians under occupation.