International humanitarian law requires parties to an armed conflict to distinguish between civilians and combatants, and between civilian objects and military objectives. Attacks must be directed only at military objectives; indiscriminate attacks are prohibited. This is a core legal rule, not merely a statement of good intentions. It shapes target selection and the protection owed to civilians. A civilian does not become a lawful target simply because they live in territory controlled by a party to the conflict. Under the law, a civilian who directly participates in hostilities loses protection against direct attack only for such time as that participation continues. The principle of distinction remains central to assessing the legality of conduct during armed conflict. Source: International Committee of the Red Cross