So, in Numbers 31, God instructs Moses to take revenge on the Midianites, who had tricked the Israelites into sinning. So Moses sends out an army to attack the Midianites and they totally annihilate them. It's kinda like when I was in high school and I was like, "Hey, I'ma get revenge on that guy who cut me off in the hallway." And then I went and kicked his ass. Anyway, the army takes captive all the women and children, and brings back all the stuff they looted, plus the body of the Midianite leader. And then Moses is like, "Hey, don't forget about me! Give me my share of the loot." So they do that, and then Moses and his peeps build an altar and offer up some sacrifices. The end.