 In the summer of 1822 , a pregnant Mary moved with Percy , Claire , and Edward and Jane Williams to the isolated Villa Magni , at the sea 's edge near the hamlet of San Terenzo in the Bay of Lerici . Once they were settled in , Percy broke the " evil news " to Claire that her daughter Allegra had died of typhus in a convent at Bagnacavallo . Mary Shelley was distracted and unhappy in the cramped and remote Villa Magni , which she came to regard as a dungeon . On 16 June , she miscarried , losing so much blood that she nearly died . Rather than wait for a doctor , Percy sat her in a bath of ice to staunch the bleeding , an act the doctor later told him saved her life . All was not well between the couple that summer , however , and Percy spent more time with Jane Williams than with his depressed and debilitated wife . Most of the short poems Shelley wrote at San Terenzo were addressed to Jane rather than to Mary . 
