There is growing consensus in international law that grave violations of international humanitarian law are a threat to international peace and security and that the world community has a moral and legal duty to intervene if the state is the perpetrator, or cannot or will not stop the crimes. Perpetrators of gender-based crimes must be held accountable in order to ensure a rule of law based on gender equality.