The definition of a treaty is a formal agreement between two or more countries about trade, peace, immigration etc. An example of a treaty is a document signed by the presidents of two countries who were previously at war to formally end the war.