Joshua took Makkedah that day and smote it and its king with the sword and utterly destroyed everyone in it. He left none remaining. And he did to the king of Makkedah as he had done to the king of Jericho. [Josh. 6:21.]
From there he pulled up [his tent pegs] and departed to the mountain on the east of Bethel and pitched his tent, with Bethel on the west and Ai on the east; and there he built an altar to the Lord and called upon the name of the Lord.