Verb (5-dan, く, intransitive)
Usually written in kana
1. to paw (at) the ground
2. to struggle (using one's arms and legs); to flounder; to flail about
溺れそうになって、水の中で必死にあがいた。I was about to drown and flailed desperately in the water.
3. to struggle (to escape an adverse situation); to strive; to make every effort
彼は貧しさから抜け出そうとあがいた。He struggled to escape poverty.