Moksha (Sanskrit: mokṣa m. , release) or Mukti (vimoksha, vimukti : liberation) stands for the deliverance from the cycles of rebirth of the soul and therefore also for the enlightenment of Nirvikalpa-Samadhi (Kaivalya) or the buddhist Nirvana(release:Moksha). In old Samkhya it stood for the liberation from the 'three worlds' of samsara.
Another name is Jivanmukti or Jivan Mukta, the liberation through the developed individal spiritual soul, the Jivatman and union with the Paramatma-Purusha.
The Yogi or adept has developed his spiritual body(Jivatman) so far, that he stays in consciousness in this body and steers his activities from there.
The Varaha-Upanishad counts several steps of the Jivanmukta : Sayujya (sāyujya), Sarupya (sārūpya), Salokya (sālokya), Sarshti (sārṣṭi) and Samipya (sāmīpya).
In this category are Turiya and Kaivalya of the Yogasutras.
In tantric buddhism moksha corresponds to the union with the dharmakaya.