idiom
take someone to task
criticar fuertemente a alguien por algo que hizo mal
Meaning
to strongly criticize someone for something they did wrong
Example
The teacher **took him to task** for cheating on the exam.
El maestro **lo regañó** por hacer trampa en el examen.