Jericho was to be attacked by the Israelites. For that Joshua sent two spies. The king of Jericho was looking for them, but they escaped with help from Rahab.

God then gave the city to the Israelites. They walked around the city one each day for six days. Then on the seventh day they walked around the city seven times. Finally when they shouted the Lord let the walls fall and the Israelites stormed the city.

Joshua gave an oath saying that whoever rebuilds Jericho will lose his firstborn son when laying the foundations and the youngest son when setting up the gates.