A literary text is a piece of written material, such as book or poem, that has the purpose of telling a story or entertaining, as in a fictional novel. Its primary function as a text is usually aesthetic, but it may also contain political messages or beliefs.