A treaty is a written agreement between states or sovereigns. Examples include NATO and the Tripartite Pact.