Moksha or Liberation is the total abandonment of all vasanas or mental conditioning, without the least reserve.
Mental conditioning is of two types – the pure and the impure. The impure is the cause of birth; the pure liberates one from the cycle of birth. The impure is of the nature of nescience and ego-sense; these are the seeds for the tree of rebirth.
If consciousness ceases to be the finite mind, then know that the very roots of birth and death are burnt and there is perfection.