After a clear warning from God about a specific accursed object in Jericho, that Israel should avoid looking at it, to avoid being tempted, Achar took the object and hid it in his tent. As a result of his disobedience, God withdrew his spirit from the camp and Israel was defeated in battle by Gai. As a result Israel stoned Achar.