According to Shankara, it is the ignorance of our real nature that causes suffering and pain. The desire for happiness is essentially a longing to awaken to who and what we truly are.
Through the path of self-knowledge, Shankara clearly teaches how to awaken from ignornce created by the mind, and abide in the peace of our true nature.