A peace treaty is an agreement between two or more hostile parties , usually a country or a government , which formally signals the end of the war between the two sides. [1] It is an agreement to end hostilities ; A surrender , so that an army agrees to lay down arms ; Or a ceasefire , so that the parties agree to cease fighting temporarily or permanently.