The ultimate goal of human life is to attain spiritual perfection (moksha), or freedom from transmigration of the atman . The social existence of an individual is means for attaining this supreme goal. Since an individual cannot attain moksha without fulfilling his (her) individual and social duties, responsibilities and obligations, Hindu social philosophy...includes the essential social principles and practices, goals of human life: dharma (moral law), artha (wealth), kama (pleasure), and moksha (spiritual perfection, the ultimate goal).
Man, the period of whose life is one hundred years, should practise Dharma , artha, and Kama at different times and in such a manner that they may harmonize, and not clash in any way. He should acquire learning in his childhood; in his youth and middle age he should attend to artha and Kama, and in his old age he should perform Dharma, and thus seek to gain Moksha , that is, release from further transmigration.
Hinduism takes a comprehensive view of the human condition and classifies all the things people seek in the world and beyond into four broad categories called purushaarthas, kama , artha, dharma and moksha.