The Tipitaka (Pali, lit. three baskets), also known as the Pali Canon, is the earliest extant scripture of the Buddhist tradition, collected about a century after the death of the Gautama Buddha. Written in the Pali language, these sacred texts form the scripture of the Theravada school of Buddhism; in the Vajrayana and Mahayana schools, it is known as Tripitaka (Sanskrit).
The writings, previously memorized and recited orally by disciples, now fall into three general categories and the scrolls were therefore kept in three baskets (ti-pitaka).
The first category, the Vinaya Pitaka, was the code of ethics to be obeyed by the early sangha, monks and nuns. Some rules and practices were regarded by the Buddha as essential and foundational to the pursuit of his philosophical teachings. Others were invented on a day-to-day basis as the Buddha encountered various behavior problems with the monks.
The second category is the Sutta Pitaka (literally "basket of threads", Sanskrit: Sutra Pitaka) representing the philosophical teachings of the Buddha and other early teachers, along with some "biographical sketches". The Sutta Pitaka has numerous subdivisions.
The third category, the Abhidhamma Pitaka, is a collection of texts in which the underlying doctrinal principles presented in the Sutta Pitaka are reworked and reorganized into a systematic framework that can be applied to an investigation into the nature of mind and matter. Not much is popularly written about the Abhidharma; they are more or less specific to Theravada Buddhism.