The Talmudic usage of "herem" for excommunication can be distinguished from the usage of "herem" described in the Tanakh in the time of Joshua and the early Hebrew monarchy, which was the practice of consecration by total annihilation at the command of God carried out against peoples such as the Midianites, the Amalekites, and the entire population of Jericho. The neglect of Saul to carry out such a command as delivered by Samuel resulted in the selection of David as his replacement.