He ultimately succeeds by trapping Gwawl in a magic bag that can never be filled and having him beaten to death in the bag.
He ultimately triumphs by encasing Gwawl in a magical sack that can never be filled, and having him brutally murdered within the bag.