The people of Israel killed many of them in battle. They also killed Balaam with a sword. He was the son of Beor. Balaam used magic to find out what was going to happen.