idiom
throw in the towel
Meaning
to give up or quit
Example
After many failures, he threw in the towel.