The Jātaka (Sanskrit for "Birth-Related" or "Birth Stories") are a voluminous body of literature native to the Indian subcontinent which mainly concern the previous births of Gautama Buddha in both human and animal form. Jataka stories were depicted on the railings and torans of the stupas. According to Peter Skilling, this genre is "one of the oldest classes of Buddhist literature." Some of these texts are also considered great works of literature in their own right. The various Indian Buddhist schools had different collections of jātakas. The largest known collection is the Jātakatthavaṇṇanā of the Theravada school, as a textual division of the Pāli Canon, included in the Khuddaka Nikaya of the Sutta Pitaka.
In these stories, the future Buddha may appear as a king, an outcaste, a deva, an animal—but, in whatever form, he exhibits some virtue that the tale thereby inculcates. Often, Jātaka tales include an extensive cast of characters who interact and get into various kinds of trouble – whereupon the Buddha character intervenes to resolve all the problems and bring about a happy ending. The Jātaka genre is based on the idea that the Buddha was able to recollect all his past lives and thus could use these memories to tell a story and illustrate his teachings.