Buddha taught his followers to the eight fold path (Astanga Marga) to salvation (Nirvana). He preached them to attain knowledge by practicing purity in fife and thoughts (Dharma). He said that desire was the reason for sorrow and one who wins over desire will attain liberation (Nirvana).
The eight fold path includes:
1. right view
2. right resolve
3. right speech
4. right action
5. right livelihood
6. right effort
7. right mindfulness and
8. right concentration
Buddha also preached his followers to abstain from liquor, violence, corruption and untruthfulness.