The fourth Noble Truth is the prescription, the path to cease suffering and attain nirvana.

Buddha taught that the way to extinguish suffering is to liberate oneself from attachment; that is to eradicate the craving and desire for material pleasures, sensual pleasures and mistaken view.

These are like roadblocks that stand between us and the goal of enlightenment. In order to achieve that, the path consists of a set of principles called the Eightfold Path