Mythology and literature were closely related. Myths are usually the precursor or basis of literature because they were first passed down in oral form and later processed, interpreted, and created into written literature. Literature often quoted or adapted myths. For example, the ancient Greek mythology " The Iliad " and " The Odysey " were representative works of ancient Greek literature, while the British literary classic " Harry Potter " series was adapted from the British magic myth " The Hobbit." Myths had a profound influence on literary creation. The characters, plots, and theme in myths could provide inspiration and enlightenment for literary works. For example, in Harry Potter, mythical characters such as the wizard Gandalf and the Dark Lord Voldemort were given new images and storylines. Myths also provided cultural and historical background for literary works. The characters and plots in literary works usually take place in the mythological background of myths, so myths can provide a rich historical and cultural background for literary works. Therefore, myths and literature were closely related. As the predecessor or foundation of literary works, myths provide inspiration and enlightenment for literary creation, as well as cultural and historical background for literary works.