The Battle of Jericho, as described in the Biblical Book of Joshua, was the first battle fought by the Israelites in the course of the conquest of Canaan. According to Joshua 6:1–27, the walls of Jericho fell after the Israelites marched around the city walls once a day for six days, seven times on the seventh day, and then blew their horns.

The song is believed to have been composed by slaves in the first half of the 19th century. Some references suggest that it was copyrighted by Jay Roberts in 1865

from Wikipedia