Mahāyoga (Sanskrit for "great yoga") is the designation of the first of the three Inner Tantras according to the ninefold division of practice used by the Nyingma school of Tibetan Buddhism.

Mahāyoga is held to emphasise the generation stage (or "development stage") of Tantra, where the succeeding two yana, anuyoga and atiyoga, emphasise the completion stage and the synthesis or transcendence of the two, respectively.

Reginald Ray (2002: p. 124) associates the Mahāyoga with removing aggression, or anger. An embedded quotation by Tulku Thondup identifies the focus of Mahayoga as viewing the universe as a manifestation of the Buddhist deities, a practice associated with the two truths doctrine that recognises both a conventional and an ultimate truth:

Mahāyoga-yana is associated with the masculine principle and is for those whose primary defilement is aggression. In Mahāyoga, one visualizes oneself as the divinity with consort. "All manifestation, thoughts and appearances are considered to be the sacred aspects of the divinities within relative truth," in the words of Tulku Thondup. By visualizing all phenomena as the deities of the mandala of buddhahood, in the development stage, all appearances are purified.[1]

Ray (2002: p. 124) highlights the pre-eminent usage of visualization amongst the techniques of tantric sadhana and the teaching of the "eight cosmic commands":[2]

One particular keynote of mahāyoga-yana has to do with the use of visualization. In the Vajrayana in general, one visualizes oneself as the buddha, thus giving external form to the enlightenment within. Like-wise, one visualizes the external world as pure and sacred, thus under-cutting the usual practice of taking things as impure and defiled. In mahāyoga, one comes to the realization that actually all of our everyday experience is a visualization. Just as we can visualize ourselves as a buddha and the world as pure, so we can visualize ourselves as an existent ego and the world as defiled. Realizing that all of our images and conceptions of reality are in fact complex visualizations, we gain a unique entry into the underpinnings of the conventional world and gain a certain kind of unparalleled leverage over it. This is reflected in the mahāyoga-yana teaching of the "eight cosmic commands," eight kinds of ways to intervene in the operation of the conventional world and alter its momentum for the benefit of others.[1]

As with the other yanas, Mahāyoga represents both a scriptural division as well as a specific emphasis of both view (Tibetan: ta-ba) and practice (Tibetan: yod-pa). Mahāyoga scriptures are further divided into two sections: the Sadhana section, consisting of practice texts for meditation on specific deities, and the Tantra section.

In introducing the , the textual tradition of the Mahāyoga-yana, the "Tibetan and Himalayan Library"[3] states:

mTshams brag Edition of the Collected Tantras of the Ancients rnying ma rgyud 'bum

The Mahāyoga section of the Collected Tantras of the Ancients is the largest of the three. It is divided into two major sections: the Tantra Series (rgyud sde) and the Practice Series (sgrub sde). One of the seminal Tantras of the Ancients found in this section is the Secret Essence Tantra or gsang ba'i snying po'i rgyud, which has spawned not only a plethora of Indo-Tibetan commentaries but also a heated debate in Tibet over its authenticity.[4]

The "Tibetan and Himalayan Library" states that "although the mTshams brag edition of The Collected Tantras does not rigorously organize its texts according to sub-categories, the Mahāyoga category can be further subdivided according to the following scheme":[4]

The 'eighteen great tantras' (Wylie: bshad pa dang cha mthun gyi rgyud tantra sde bco brgyad) from the Tantra series described above are at the heart of the Mahāyoga tradition. These are grouped into 'five root tantras' (Wylie: rtsa ba sku gsung thugs yon tan phrin las kyi rgyud chen po lnga), 'five practice tantras' (Wylie: sgrub pa lag len du bstan pa rol pa' rgyud chen po lnga), and 'five activity tantras' (Wylie: spyod pa'i yan lag tu 'gro ba'i rgyud chen po lnga), and the 'two supplementary tantras' (Wylie: ma tshang kha bskong ba'i rgyud chen po gnyis). Together they are known as the Māyājāla. They are as follows:

The "Guhyagarbha Tantra" (Wylie: rDo rje sems dpa' sgyu 'phrul drwa ba; gSang ba snying po) is the foremost of all of these and it abridges the content of the seventeen others as follows:

The eight Herukas (Wylie: sgrub pa bka’ brgyad) of the Nyingma mahāyoga tradition (and their corresponding sadhanas) are said to have been received by Padmakara from the Eight Vidyadharas (Tib. Rigdzin), or Eight Great Acharyas: Manjushrimitra, Nagarjuna, Vajrahumkara, Vimalamitra, Prabhahasti, Dhanasamskrita, Shintamgarbha and Guhyachandra. They were proficient in the practices of, respectively,

1) Yamantaka (Tib. Jampal Shinje, ’jam dpal sku) the wrathful Manjushri, the deity of body
2) Hayagriva (Tib. Pema Sung, padma gsung) the wrathful Avalokiteshvara, the deity of speech
3) Vishuddha/Sri Samyak (Tib. Yangdak Thuk, Wylie: yang dag thugs) the wrathful Vajrapani deity of mind
4) Vajramrita (Tib. Dudtsi Yonten, bdud rtsi yon tan) the wrathful Samantabhadra, the deity of enlightened qualities
5) Vajrakilaya/Vajrakumara (Tib. Dorje Phurba, phur ba ‘phrin las), the wrathful Nivaranavishkambin, the deity of action
6) Matarah (Tib. Mamo Botong, ma mo rbod gtong) the wrathful Akasagarbha, the deity of calling and dispatching
7) Lokastotrapuja-natha (Tib. Jigten Chotod, ’jig rten mchod bstod) the wrathful Ksitigarbha, the deity of worldly offering and praise
8) Vajramantrabhiru (Tib. Mopa Dragnak, mod pa drag sngags) the wrathful Maitreya, the deity of wrathful mantras

The Tibetan master Pelyang (dPal dbyangs) was influential in bringing Mahayoga to Tibet. He was known for his focus on view as opposed to practice.[7]