The teacher punished the students cruelly for their mistakes.
Idiomatic Expressions for cruelly
Phrase: treat someone cruelly
Meaning: to behave towards someone in a harsh or unkind manner
Usage: She was treated cruelly by her boss, who constantly criticized her work.