The women of Moab and Midian, following the advice of God through his prophet Balaam, invited the Israelite men to have sex with them and worship the gods of Moab. This made God angry, so he decided to kill all the Israelites yet again, and he told Moses, the leader of Israel, to kill all the leaders of Israel. So Moses told the judges of Israel to kill all the Israelites who had worshipped a Moabite god.
God had already killed tens of thousands of Israelites himself, when an Israelite leader brought a Midianite woman into his tent. When Aaron’s grandson Phinehas saw this, he followed them into the tent and killed them with a spear. This somehow turned away God’s anger and convinced him not to kill all the Israelites. God was so pleased with Phinehas that he made a covenant of peace with him and said the descendants of Phinehas would always be God’s priests.
Continue reading The Story of the Moabite/Midianite Clusterfuck—The Origin of the Priesthood