Wisdom literature is a genre of literature common in the ancient Near East. It consists of statements by sages and the wise that offer teachings about divinity and virtue. Although this genre uses techniques of traditional oral storytelling, it was disseminated in written form.
The earliest known wisdom literature dates back to the middle of the 3rd millennium BC, originating from ancient Mesopotamia and Egypt. These regions continued to produce wisdom literature over the subsequent two and a half millennia. Wisdom literature from Jewish, Greek, Chinese, and Indian cultures started appearing around the middle of the 1st millennium BC. In the 1st millennium AD, Egyptian-Greek wisdom literature emerged, some elements of which were later incorporated into Islamic thought.
Much of wisdom literature can be broadly categorized into two types - conservative "positive wisdom" and critical "negative wisdom" or "vanity literature":
Conservative Positive Wisdom - Pragmatic, real-world advice about proper behavior and actions, attaining success in life, living a good and fulfilling life, etc.. Examples of this genre include: Proverbs, The Instructions of Suruppak, and first part of Sima Milka.
Critical Negative Wisdom (AKA "Vanity Literature" or "Wisdom in Protest") - A more pessimistic outlook, frequently expressing skepticism about the scope of human achievements, highlighting the inevitability of mortality, advocating the rejection of all material gains, and expressing the carpe diem view that, since nothing has intrinsic value (vanity theme) and all will come to an end (memento mori theme), therefore one should just enjoy life to the fullest while they can (carpe diem theme). Examples of this genre include: Qohelet, The Ballad of Early Rulers, Enlil and Namzitarra, the second part of Sima Milka (the son's response), and Nig-Nam Nu-Kal ("Nothing is of Value").
Another common genre is existential works that deal with the relationship between man and God, divine reward and punishment, theodicy, the problem of evil, and why bad things happen to good people.