The end to suffering is called nirodha. It is achieving Nirvana, which is the final liberation of suffering. The mind experiences complete freedom, liberation and non-attachment. It lets go of any desire or craving. It is attaining dispassion.
Nirvana means freedom from all worries, troubles and ideas. It is not comprehensible for those who have not attained it.
In order to end suffering, you must follow the Eightfold Path. This liberation from suffering is what many people mean when they use the word "enlightenment."
The path to the end of suffering is gradually seeking self-improvement through the eight elements. The path to the end of suffering can extend over many lifetimes, throughout which every individual rebirth is subject to karmic conditioning. Craving, ignorance and other effects will disappear gradually, as progress is made through each lifetime.