The goal for some Buddha was enlightenment and to achieve this they had to follow the Eightfold Path one step at a time. The final goal in Buddhism is nirvana which is a state of being perfect and ending the process of reincarnation.
Ultimate goal of Buddhism and Hinduism