Writing a fantasy book requires a deep knowledge of mythology, legends, and lore, to make the story more lively and vibrant. J.K. Rowling seems to take note of these writing tips, as she seems to insert a lot of references to real-life legendary figures into the Wizarding World of Harry Potter.