Similes are a figure of speech that compare two things using words like "like" or "as".
* Fiction: Similes are commonly used in fiction to create vivid imagery and evoke strong emotions.
* Nonfiction: Similes can be used in nonfiction to explain complex concepts, make arguments more engaging, or simply to make writing more interesting.
Therefore, both fiction and nonfiction literature can contain similes.