The author’s purpose describes?

the reason for writing a text. It could be to inform, persuade, entertain, or simply express thoughts and ideas.