Combat in warfare involves two or more opposing combatants, usually fighting for nations at war.
Warfare falls under the laws of war
which govern its purposes and conduct, and protect the rights of people participating or not participating in active hostilities.
Combat may be armed (using weapons) or unarmed (not using weapons).
Hand-to-hand combat melee is combat at very close range, attacking the opponent with the body striking, kicking, strangling, etc
and/or with a melee weapon
knives, swords, battons, etc, as opposed to a ranged weapon.
Modern laws of war address declarations of war, acceptance of surrender and the treatment of prisoners of war; military necessity, along with distinction and proportionality; and the prohibition of certain weapons that may cause unnecessary suffering.