While King Hadadezer of Zobah was trying to gain control of the territory near the River Euphrates, David met him in battle at Hamath and defeated him.