Adoni-zedec in Wikipedia

(variously transliterated as Adoni-zedec or Adoni-Zedek (in Hebrew, Adoni-Tzedek) was, according to the Book of Joshua, king of Jerusalem at the time of the Israelite invasion of Canaan (Joshua 10:1-3 ). His name means "my lord is righteousness" in Hebrew. 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 1:5-7 , though they may refer to two different individuals. According to the Midrash, the name Adoni-zedek is translated as "Master of Zedek" - that is, "of Jerusalem," the city of righteousness (Genesis Rabbah xliii. 6)...

Read More about Adoni-zedec in Wikipedia