よりほかない - Grammar Discussion

to have no choice but
no other way than
have to

Structure

  • Verb + よりほかない
  • Verb + よりほか(に/には/は)ない

[Aほかない is used when nothing can be done except A, based on some circumstances]

View on Bunpro

I have a question about example sentence:

泥棒の攻撃から守るためだったため、相手を撃つよりほかなかった

I don’t understand why ため is used twice here. Does it have any special meaning?