Shelley started writing the story when she was 18, and the first edition was published anonymously in London on 1 January 1818, when she was 20. ... After thinking for days, Shelley was inspired to write Frankenstein after imagining a scientist who created life and was horrified by what he had made.