Hinduism and Buddhism are known as Dharmic religions. Dharma is defined as the sum of all moral responsibilities and duties that adherents are expected to perform. Closely tied to the concept of dharma is the process of reincarnation.
Reincarnation is the belief that upon death, the soul will travel to another living being. The Dharmic religions teach that if a person lives a moral life with regards to dharma, he will be reincarnated into another soul, that is further along the path towards salvation.
Hindus and Buddhists believe that the source of the soul is a force known as Brahman. The ultimate result of several cycles of reincarnation is to be reunited with this force. In Hinduism, the reunification of the soul with Brahman is called moksha. Buddhists have the same goal, but it is given the name nirvana. In both Hinduism and Buddhism, the ultimate goal is to end the cycle of reincarnation.