The Vinaya Piṭaka (Sanskrit, Pali; English: Basket of Discipline) is a Buddhist scripture, one of the three parts that make up the Tripiṭaka (lit. Three Baskets). The other two parts of the Tripiṭaka are the Sutra Piṭaka (Sanskrit; Pali: Sutta Piṭaka) and the Abhidharma Piṭaka (Sanskrit; Pali: Abhidhamma Piṭaka).
Its primary subject matter is the monastic rules of conduct for monks and nuns.
According to tradition, the Tripiṭaka was compiled at the First Council shortly after the Buddha's death. The Vinaya Piṭaka is said to have been recited by Upāli, with little later addition. Most of the different versions are fairly similar, most scholars consider most of the Vinaya to be fairly early, that is, dating from before the separation of schools.
Six complete versions are extant. Fragments of the remaining versions survive in various languages. The first three listed below are still in use.
The Pali version of the Patimokkha contains 227 rules for bhikkhus and 311 rules for bhikkhunis. The Vibhaṅga sections consist of commentary on these rules, giving detailed explanations of them along with the origin stories for each rule. The Khandhaka section gives numerous supplementary rules grouped by subject that also consist of origin stories.
The collected Chinese editions of the Vinaya Piṭaka consist of a broader category of literature, as it includes all four Chinese vinayas listed above, as well as post-canonical literature, lay precepts and the Bodhisattva Vinaya.
According to the sutras, in the first years of the Buddha's teaching the sangha lived together in harmony with no vinaya, as there was no need, because all of the Buddha's early disciples were highly realized if not fully enlightened. As the sangha expanded, situations arose which the Buddha and the lay community felt were inappropriate for mendicants.
The first rule to be established was the prohibition against sexual intercourse. The origin story tells of an earnest monk whose family was distraught that there was no male heir and so persuaded the monk to impregnate his former wife. All three—the monk, his wife and son, the latter of whom later ordained—eventually became fully enlightened arhats.
The Buddha called his teaching the "Dhamma-Vinaya", emphasizing both the philosophical teachings of Buddhism as well as the training in virtue that embodies that philosophy. Shortly before his passing, the Buddha clarified to his disciples through Ānanda:
Now, Ānanda, if it occurs to any of you—"The teaching has lost its arbitrator; we are without a Teacher"—do not view it in that way. Whatever Dhamma and Vinaya I have pointed out and formulated for you, that will be your Teacher when I am gone.