Defensive alliance is a type of a diplomatic union, in which both sides agree to certain actions in case one of the sides is attacked by a third party.