idiom
grit your teeth
Meaning
to accept something unpleasant and continue
Example
He had to **grit his teeth** and finish the job.