A ceasefire is an agreement to temporarily stop a war, providing the termination of hostilities between parties in conflict. It can be an informal understanding or a formal legal treaty contributing to permanent peace. The core elements of a ceasefire include the termination of conflicts, separation of forces, and supervision, verification, and monitoring. Effective ceasefires have key elements such as establishing strategies to prevent parties from coming into contact aggressively, assigning rights and obligations, and having a formal legal obligation. Regional organizations, non-governmental organizations, or international entities can play a vital role in mediating ceasefires. Examples of successful ceasefires include the Korean War and Vietnam War.