Explanation:
Mary Shelley was heavily influenced by the events in her life, including the death of her mother, Mary Wollstonecraft, and her discussions about scientific advancements of the time. Additionally, she was surrounded by a group of intellectuals and writers, including her husband Percy Shelley, who encouraged her to develop her writing skills. These influences led her to create Frankenstein, a work that explores the limits of science and the consequences of unchecked ambition.