zacisnąć zęby

Etymology
lit. 'to clench [one's] teeth'.

Verb

 * 1)  to grit one's teeth