Some time earlier, when David conquered the nation of Edom, Joab his army commander went there to bury those who had died in battle. Joab and his soldiers stayed in Edom six months, and during that time they killed every man and boy who lived there.
While Amaziah was king, he killed ten thousand Edomite soldiers in Salt Valley. He captured the town of Sela and renamed it Joktheel, which is still its name.