At the Jordan River, the waters parted, as they had for Moses at the Red Sea. The first battle after the crossing of the Jordan was the Battle of Jericho. Joshua led the destruction of Jericho, then moved on to Ai, a small neighboring city to the west. However, they were defeated with thirty-six Israelite deaths. The defeat was attributed to Achan taking an "accursed thing" from Jericho; and was followed by Achan and his family and animals being stoned to death to restore God's favor. Joshua then went to defeat Ai.