The Vinaya Piṭaka is a Buddhist scripture, one of the three parts that make up the Tripitaka. Its primary subject matter is the monastic rules for monks and nuns. The name Vinaya Piṭaka (vinayapiṭaka) is the same in Pāli, Sanskrit and other dialects used by early Buddhists, and means basket of discipline.
Scholarly consensus places the composition of the Mūlasarvāstivāda Vinaya in the early centuries of the first millennium, though all the manuscripts and translations are relatively late.
Six versions survive complete, of which three are still in use.
In addition, portions of various versions survive in various languages.
It was compiled at the First Council shortly after the Buddha's death, and recited by Upali, 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.
The Pali version of the Patimokkha, the code of conduct that applies to Buddhist monastics, contains 227 major rules for bhikkhus and 311 major rules for bhikkhunis. The Vibhanga section(s) of Vinaya Pitaka constitute(s) a commentary on these rules, giving detailed explanations of them along with the origin stories for each rule. The Khandhaka/Skandhaka sections give numerous supplementary rules grouped by subject, again with origin stories. 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.
In the collected Chinese editions of the Scriptures the Vinaya pitaka has a broader sense, including all four Chinese vinayas listed above, parts of others, non-canonical vinaya literature, lay vinaya and bodhisattva vinaya.