From the Law of War manual 15:
11.3.1 End of Occupation. Belligerent occupation ceases when the conditions for its application are no longer met. 81 In particular, as discussed below, the status of belligerent occupation ceases when the invader no longer factually governs the occupied territory or when a hostile relationship no longer exists between the State of the occupied territory and the Occupying Power. 82
Belligerent occupation ends when the Occupying Power no longer has effectively placed the occupied territory under its control. 83
For example, an uprising by the local population may prevent the Occupying Power from actually enforcing its authority over occupied territory.
Similarly, the Occupying Power’s expulsion or complete withdrawal from the territory would also suffice because the former Occupying Power generally would not be able to control sufficiently the occupied territory.
Belligerent occupation also may end when a hostile relationship no longer exists between the Occupying Power and the State of the occupied territory (although, as discussed in the following subsection, certain GC obligations may continue to apply). 84
From the Law of War manual 15: 11.3.1 End of Occupation. Belligerent occupation ceases when the conditions for its application are no longer met. 81 In particular, as discussed below, the status of belligerent occupation ceases when the invader no longer factually governs the occupied territory or when a hostile relationship no longer exists between the State of the occupied territory and the Occupying Power. 82 Belligerent occupation ends when the Occupying Power no longer has effectively placed the occupied territory under its control. 83 For example, an uprising by the local population may prevent the Occupying Power from actually enforcing its authority over occupied territory. Similarly, the Occupying Power’s expulsion or complete withdrawal from the territory would also suffice because the former Occupying Power generally would not be able to control sufficiently the occupied territory. Belligerent occupation also may end when a hostile relationship no longer exists between the Occupying Power and the State of the occupied territory (although, as discussed in the following subsection, certain GC obligations may continue to apply). 84