A treaty between states that agree to mutually defend each other in the event of an attack from an outside entity.