The Vinaya (Pali and Sanskrit: विनय) refers to numerous monastic rules and ethical precepts for fully ordained monks and nuns of Buddhist Sanghas (community of like-minded sramanas). These sets of ethical rules and guidelines developed over time during the Buddha's life. More broadly, the term also refers to the tradition of Buddhist ethical conduct. The term "Vinaya" also refers to a genre of Buddhist texts which contain these precepts and rules and discuss their application, along with various stories of how the rules arose and how they are to be applied. Various lists and sets of Vinaya precepts were codified and compiled after the Buddha's death in different Vinaya texts.
As one of the main components of the canonical Buddhist canons (Tripiṭakas), alongside the Sūtra and Abhidharma (Pāli: Abhidhamma), the Vinaya Piṭakas contains detailed prescriptions governing the behavior, conduct, and communal procedures of monks (bhikṣu) and nuns (bhikṣuṇī). These include rules of individual discipline (prātimokṣa), protocols for communal harmony, and guidelines for handling transgressions.