A peace treaty is a formal (official) agreement which ends a conflict. The conflict is usually between countries or governments, but may be between any other kind of group. The conflict is usually armed conflict, such as war, or serious disputes which might lead to war.