Abraham’s nephew Lot separated himself from Abraham and went to live in Sodom. His decision soon got him in trouble. Genesis 14:1-16 describes how a coalition of kings led by Chedorlaomer overcame Sodom and its allies and took as prisoners the people of those cities, including Lot. When Abraham heard of this he called out his followers and rescued Lot and the other captives.
After his return from the defeat of Chedorlaomer and the kings who were with him, the king of Sodom went out to meet him at the Valley of Shaveh (that is, the King’s Valley). (Genesis 14:17)
But before the king of Sodom met him he encountered Melchizedek.
And Melchizedek king of Salem brought out bread and wine. (He was priest of God Most High.) And he blessed him and said,
“Blessed be Abram by God Most High,
Possessor of heaven and earth;
and blessed be God Most High,
who has delivered your enemies into your hand!”
And Abram gave him a tenth of everything. (Genesis 14:18-20)