The contemplation of the nine stages of a decaying corpse is a Buddhist meditational practice in which the practitioner imagines or observes the gradual decomposition of a dead body. Along with paṭikūlamanasikāra, this type of meditation is one of the two meditations on "the foul" or "unattractive" (aśubha). The nine stages later became a popular subject of Buddhist art and poetry. In Japan, images of the stages are called kusōzu (九相図, lit. 'nine-phase pictures') and became related to aesthetic ideas of impermanence.
Early instances of the nine stages of decay can be found in the Satipaṭṭhāna Sutta, (–20 BC) the "Sutra on the Samādhi Contemplation of the Oceanlike Buddha," and the "Discourse on the Great Wisdom" (Mahaprajnaparamitita-sastra) by Nagarjuna (c. 150–250 AD). The stages listed in the Mahaprajnaparamitita-sastra spread to Japan, probably through Chinese Tiantai writings including the Mohe Zhiguan of Zhiyi (438–497 AD), and influenced medieval Japanese art and literature.