To end suffering, one must overcome craving and attachment. This is outlined in the second noble truth, which states that the root cause of suffering is craving or attachment to desires and worldly possessions. By letting go of these cravings and attachments, one can achieve liberation from suffering.