Numbers 25 recounts Israel becoming involved in sexual immorality and the worship of the Baal of Peor. During the resulting plague and public mourning,
Zimri son of Salu, a leader of a Simeonite ancestral house, brought Cozbi daughter of a Midianite leader before his fellow Israelites and into his tent. Phinehas followed them and killed both, after which the plague stopped. The text later names Zimri and Cozbi explicitly in connection with the incident.