Have no choice but to [ざるをえない]

We can use ざるを得ない  to say that we have not choice but to do something.

頑張らざるを得ない。

I have not choice but to do my best.