A noun meaning a desperate struggle or flailing effort; often used figuratively (e.g., 'a last desperate attempt').
彼は解雇されそうになって、最後のあがきを見せた。
He showed a final desperate attempt when he was about to be fired.
暗闇で馬が足をあがきながら暴れていた。
The horse was pawing and thrashing about in the dark.
どんなにあがいても状況は変わらない時がある。
There are times when no matter how much you struggle, the situation doesn't change.