You let enough damage accumulate to deal the bosses health in damage. For further information read this post explaining mechanics