International humanitarian law (IHL) and international human rights law (IHRL) both aim to protect individuals in armed conflict and civil unrest. IHL regulates armed conflict by limiting means and methods of warfare and reducing suffering. It protects civilians and those no longer taking part in hostilities. IHRL establishes rules for governments in their treatment of individuals during peacetime and conflict, though some rights can be derogated during emergencies. Both bodies of law place duties on states and non-state actors, and establish international mechanisms to support implementation and enforcement.