Israel’s leaders tore their clothing and threw dust on their heads, common public gestures of grief or despair in the ancient Near East. By falling face down before the ark of the LORD, Joshua finally admitted that Israel needed God's guidance in the battle against Ai.