a treaty or confederacy

The Jews were forbidden to enter into an alliance of any kind (1) with the Canaanites (Exodus 23:32-33; 34:12-16); (2) with the Amalekites (Exodus 17:8, 14; Deuteronomy 25:17-19); (3) with the Moabites and Ammonites (Deuteronomy 2:9, 19).

Treaties were permitted to be entered into with all other nations. Thus David maintained friendly intercourse with the kings of Tyre and Hamath, and Solomon with the kings of Tyre and Egypt.