defense pact

treaty or military alliance to defend each other if attacked by a third party