Danish writer Hans Christian Andersen (1805-1875) is recognized around the world for his beloved books, including The Ugly Duckling, Thumbelina, The Little Match Girl, The Princess and the Pea, and many others. However, few people know much about the man behind these famous fairy tales—a man who endured many hardships and, by some accounts, transformed his pain into art. Here are seven surprising facts about Andersen’s life and legacy that you won't find in the children's section of a bookstore.

1. Some of Hans Christian Andersen's fairy tales are autobiographical.

According to scholars, the tale of The Ugly Duckling reflects Andersen’s own feelings of alienation. As a boy, he was teased for his appearance and high-pitched voice, which often made him feel isolated, and he later wrote a story about a boy named Hans who gets made fun of as a child. Much like the ugly duckling, Andersen only later in life became the “swan”—a cultured, world-renowned writer with friends in high places. Andersen even admitted of The Ugly Duckling, “This story is, of course, a reflection of my own life.”

There’s also evidence that Andersen placed his characters in desperate and hopeless situations to reflect his own personal traumas, which included being raised in poverty, losing his father, and having to briefly work in a factory at age 11 to support his mother. Paul Binding, a literary critic who penned a book about Andersen, said the long-lasting appeal of his stories go beyond their authenticity. "True, some of Andersen’s most famous stories—The Ugly Duckling, The Steadfast Tin Soldier, even The Little Mermaid—are dramatizations or sublimations of his own dilemmas, but they would not work on us as they do if they did not transcend the personal—in language, in observation and detail, and in intricate but unobtrusive structure—to stand on their own as perfectly wrought artifacts of universal appeal," Binding wrote for The Guardian.

2. Hans Christian Andersen's original version of The Little Mermaid was a lot more depressing than Disney’s take.

Andersen’s Little Mermaid story from 1837 was far darker than the kid-friendly Disney movie it would later inspire. In the original (which you can read online for free here), an unnamed mermaid who falls in love with a prince is offered the chance to take a human form, even though she'll live in perpetual agony and has to have her tongue cut out. The mermaid's goal—besides love—is to gain an immortal soul, which is only possible if the prince falls in love with her and marries her. After the prince marries someone else, however, the mermaid contemplates murdering him, but instead accepts her fate and throws herself into the sea, where she dissolves into sea foam. The mermaid is greeted by spiritual beings who say they'll help her get into heaven if she does good deeds for 300 years. So there’s that, at least.

3. Poor translations may have altered Hans Christian Andersen's image abroad.

According to UNESCO, Andersen is the eighth most-translated writer in the world, trailing right behind Vladimir Lenin. Though his works have been reproduced in more than 125 languages, not all of them have been faithful retellings. From the beginning, there have been many examples of “shoddy translations” that “obliterated” his original stories, according to the writers Diana Crone Frank and Jeffrey Frank in their modern translation of The Stories of Hans Christian Andersen. As a result, Andersen’s reputation beyond Scandinavia was “not as a literary genius but as a quaint 19th-century writer of charming children’s stories,” the pair write.

4. Hans Christian Andersen wore out his welcome while staying with Charles Dickens.

Andersen met his literary hero, Charles Dickens, at an aristocratic party in 1847. They kept in touch, and a decade later Andersen came to stay with Dickens at the British author's home in Kent, England. The visit was meant to last two weeks at most, but Andersen ended up staying five weeks—to the dismay of the Dickens family. On his first morning there, Andersen proclaimed that it was a Danish custom for one of the sons of the household to shave their male guest. Instead of complying, the family set him up with a local barber. Andersen was also prone to tantrums, at one point throwing himself face down on the lawn and sobbing after reading a particularly bad review of one of his books. Once Andersen finally left, Dickens wrote and displayed a note that read, “Hans Andersen slept in this room for five weeks—which seemed to the family AGES!” Dickens stopped responding to Andersen's letters, which effectively ended their friendship.

5. Hans Christian Andersen was terrified of being buried alive.

Andersen had a lot of phobias. He was afraid of dogs. He didn’t eat pork because he worried he would contract trichinae, a parasite that can be found in pigs. He kept a long rope in his luggage while traveling, in case he needed to escape a fire. He even feared he would accidentally be declared dead and buried alive, so before bed each night, he propped up a note that read, “I only appear to be dead.”

6. Hans Christian Andersen may have been celibate his whole life.

Although Andersen lived a long and full life, he struggled with personal relationships and never got his own fairy tale ending. At different points in his life, he fell for a number of women—and possibly a few men as well, according to some interpretations of the amorous letters he wrote to young men—but his feelings were unrequited each time. "I believe he never had a sexual relationship," biographer Bente Kjoel-bye told the Deseret News. Although Andersen is often regarded as a pure and chaste figure, he was no stranger to lustful thoughts. When he was 61 years old, he went to a brothel in Paris for the first time and paid a prostitute, but didn't do anything except watch her undress. After a second visit to a "shop which traded in human beings," he wrote in his diary, "I spoke with [a woman], paid 12 francs, and left without having sinned in action, but probably in thought."

7. Hans Christian Andersen is considered a “national treasure” in Denmark.

The Danish government declared Andersen a “national treasure” when he was in his late sixties, around the same time that he started showing symptoms of the liver cancer that would ultimately claim his life. The government subsequently paid him a stipend and started constructing a statue of the author in the King's Garden in Copenhagen to commemorate his 70th birthday. Andersen lived to see his birthday, but died four months later. Over a century later, you can still see tributes to the writer’s legacy in Copenhagen, including a second statue of Andersen along the street named after him (H.C. Andersens Boulevard) and a sculpture of the Little Mermaid at Langelinje Pier. Visitors are also welcome at his childhood home in Odense, Denmark, and at a museum dedicated to his work in the same city.

Do you love reading? Are you eager to know incredibly interesting facts about novelists and their works? Then pick up our new book, The Curious Reader: A Literary Miscellany of Novels and Novelists, out May 25!