Figurative language is used to enhance and deepen the meaning of a text by creating vivid imagery and conveying emotions or ideas in a more imaginative and creative way. It allows readers to engage more deeply with the text and interpret its meanings beyond the literal.