Literary genre refers to the categorization of literature based on stylistic criteria, themes, or content, which helps both writers and audiences to set expectations about a text's form and purpose. This classification allows readers to engage with texts using a shared understanding of similar narrative structures and conventions across different works.