Adonizedek led a coalition of five of the neighboring Amorite rulers (Hoham king of Hebron, and unto Piram king of Jarmuth, and unto Japhia king of Lachish, and unto Debir king of Eglon) to resist the invasion, but the allies were defeated at Gibeon, and suffered at Beth-horon, not only from their pursuers, but also from a great hail-storm. The five allied kings took refuge in a cave at Makkedah and were imprisoned there until after the battle, when Joshua commanded that they be brought before him; whereupon they were brought out, humiliated, and put to death. The name Adoni-zedek seems to be corrupted into Adoni-Bezek in Judges, i. 5-7, though they may refer to two different individuals..
The author of the article for the Easton's Bible Dictionary states that amongst the Amarna letters are some letters from Adonizedek to the Pharaoh of Egypt, which add to the history recorded in Josh. 10. However, the only king of Jerusalem mentioned in this archive is one `Abdi-Heba (whose name translates as "servant of Heba"), who is said to have succeeded Lab'ayu. Six of his letters to the king of Egypt (EA 285-290) are included in the Amarna letters, and he is mentioned in a seventh (EA 280). Perhaps the Dictionary author saw how `Abdi-Heba complained of the raids by the Habiru, who at the time were unquestioningly identified with the Hebrews, and forced the identification.