The Israelites were defeated by the men of Ai after Joshua sent only 3,000 men to take the city, as the spies had reported only a small population. The men of Ai killed about thirty-six Israelites and chased them from the city gate. This defeat caused the hearts of the Israelite people to melt in fear.