Put (someone) in his or her place

To scold someone for rude or bad behavior, to rebuke someone.

Our teacher was very angry and put the student in his place for his rude remark.