Now it happened, when Adoni-zedek king of Jerusalem heard how Joshua had taken Ai, and had utterly destroyed it; as he had done to Jericho and her king, so he had done to Ai and her king; and how the inhabitants of Gibeon had made peace with Israel, and were among them;
"Adonizedek ..."  (Joshua 10:1).  This king of Jerusalem, unlike his famous predecessor, Melchizedek, the king of Salem (Salem here being understood as an earlier name for Jerusalem), was an evil man.  And like every wicked man, he was utterly blind to the presence and purpose of God which promulgated the invasion of Canaan.  Notice that Adonizedek did not fear God, but only Joshua.  He failed to see that Joshua was not his primary enemy, but that God Himself was the Person who would drive the wicked Canaanites out of Palestine, and that Joshua was only God's INSTRUMENT in that operation.