Mahasamadi

The great and final Samadhi higher level of concentrated meditation.
Mahasamadhi is a yogi's conscious decision to leave the body. This conscious decision to leave the body can be only attained by a yogi who has attained God realisation.
Meditation takes the mind to transcendental Self-consciousness, and a natural and balanced activity infuses the transcendental divine nature into the mind, where it is not lost even when the mind is engaged in the field of activity. In this way Selfconsciousness grows to cosmic consciousness and eventually this state of cosmic consciousness, attains its fulfillment in God-consciousness.
An enlightened or realized yogi is one who has attained the belief, condition, practice or quality state of Nirvikalpa Samadhi where duality of subject and object are resolved and the yogi becomes permanently established in the unity of full enlightenment.
Upon development of Samadhi, one's mind becomes purified of defilements, calm, tranquil, and luminous. Once the meditator achieves a strong and powerful concentration, his mind is ready to penetrate and see into the ultimate nature of reality, eventually obtaining release from all suffering.
A realized yogi who has attained the state of Nirvikalpa Samadhi (enlightenment), will, at an appropriate time, consciously exit from their body and cease to live. This is known as Mahasamadhi. This is not the same as the physical death that occurs for an unenlightened person.
Mahasamādhi (the great and final Samadhi) is the act of consciously and intentionally leaving one's body at the time of death.
Each realized yogi enters and prepares for Mahasamadhi in their unique spiritual practice, and follow various spiritual or ritual objectives which include a variety of disciplines.
Enlightened yogis take their Mahasamadhi during their final practice of samadhi and they expire during this final sadhana practice. Therefore, Mahasamadhi occurs only once in a lifetime, when the yogi finally casts off their mortal frame and their karma is extinguished upon death.