"Tanto nadar para morir en la orilla":

To swim so much to finally die in the shore.
Used when someone has done a big effort but wasn't able to achieve a good result.