Gothic literature was heavily influenced by horror and mystery genres, which were popular in the 18th and 19th centuries. Horror and mystery writers like Edgar Allan Poe and H.P. Lovecraft had a significant impact on the development of the Gothic genre.