to put in one's place
The teacher put him in his place in front of the whole class.
—How did you react to the insult? —I put him in his place right away.
Someone had to put him in his place, he was going too far.