They made the Lord angry by their actions, and a plague broke out among them.
Phinehas took a stand and intervened, and the plague subsided.