The laws of armed conflict are based on a number of treaties that lay out the guidelines for conducting warfare.