A peace treaty is an agreement between two hostile parties, usually countries or governments, that formally ens an armed conflict. It is different from a n armistice, which is an agreement to cease hostilities, or a surrender, in which an army agrees to give up arms.