bitter end
noun
°(nautical) that part of an anchor cable which is abaft the bitts and thus remains inboard when a ship is riding at anchor.
"Note: To pay out a rope to the bitter end means to pay it all out"
°The end of a long and difficult process.