Mary Shelley (then Mary Godwin) was only a teenager when she visited Lord Byron's home in Switzerland with her boyfriend, poet Percy Shelley. One night while they were there it was a (pardon the cliche) dark and stormy night, and the friends began telling ghost stories. Mary had had a dream about a man who created a monster, and she drew inspiration from that dream. She may have also taken ideas from conversations she had with these friends about galvanism, which is when a current of electricity is applied to muscles and nerves (based on the scientist Galvani's work shocking frogs and making their muscles twitch). At the time, the early 1800s, they were beginning to come upon some technology that would "bring the dead to life" or resuscitate people, like artificial breathing or what we now call CPR.
Mary Shelley's introduction to the book explains some of her inspiration for the novel, and her novel also addresses many of the scientific questions of the time.
Such a fun question, because it has such a fun answer! Mary Shelley and her husband, Percy Bysshe Shelley, were visiting their friend Lord Byron when she got the idea for this book. The three friends agreed to challenge: who could come up with the best ghost story to scare the other two? Shelley wrote in her introduction to the book that she was inspired by the image of a ghoulish and "hideous phantasm of a man".
The image became Victor Frankenstein's monster. Shelley used the technique of horror stories that would later become central to the writings of such authors as Stephen King - base the tale as much on real situations as possible. Science was beginning to encroach on everyday life in Shelley's world, in the early 19th century. Just as we can imagine hover cars being a possibility, it was not a far leap for people of the time to imagine science had the capability to reanimate life.
Which leads to Shelley's other purpose in writing. Like many of the romantic authors, Shelley wanted to idealize and glorify nature. She creates this story to demonstrate negative affects of science and of man's attempts to control nature. She makes the tragic flaw of her protagonist his arrogance in all dealings with the natural world.
And all from a friendly bet!
frankenstein was written because mary shelley and her friends were thinking about and making up horror stories when they were bored.. :(
The early nineteenth century produced a new type of novel which delighted multitude of readers whose nerves were somewhat excited, and who received in " bogey" stories of supernatural terrors.
"The giant now awake. The mind, never torpid, but never roused to its full
Energies, received the spark which lit it into an unextinguishable flame".
In her explicit evocation of the giant image to describe the French Revolution and its multiple ramifications, Mary Shelley through Frankenstein wanted to throw light on her battling with the monster of modernity and struggling with the atheistic philosophy of her father and the iconoclastic musings of her lover.
It was written because Mary Shelley visited a friend with her husband, this was because they wanted to get away from all the trouble because she was only 18, she basically ran away. This came to her because their friend challanged them both to a ghost story competition. This went very well for mary shelley because she got the things she needed off her chest.