to stop trying to do something because you know that you cannot succeed
Usage notes: If a boxer (= man who fights as a sport) throws a towel into the ring, he is showing that the other boxer has won.
Three of the original five candidates have now thrown in the towel.