Percy Bysshe Shelley from a friend, Shelley wrote him a letter inviting him to join him at his residence at Pisa. Keats replied with hopes of seeing him, but instead, arrangements were made for Keats to travel to Rome with the artist Joseph Severn. Inspired by the death of Keats, in 1821 Shelley wrote the elegy "Adonais". In 1821 Shelley met Edward Ellerker Williams, a British naval officer, and his wife Jane Williams. Shelley developed a very strong affection towards Jane and addressed a number of poems to her. In the poems addressed to Jane, such as "With a Guitar, To Jane" and
Elegy Written in a Country Churchyard “The Magdalens: an elegy” (1763); “The Nun: an elegy” (1764); and “An Elegy Written Among the Ruins of an Abbey” (1765), which is derivative of the earlier poems on ruins by Moore and Cunningham. At the opposite extreme, Gray's poem provided a format for a surprising number that purport to be personal descriptions of life in gaol, starting with “An elegy in imitation of Gray, written in the King's Bench Prison by a minor “ (London 1790), which is close in title to William Thomas Moncrieff’s later "Prison Thoughts: An elegy, written in the King's Bench Prison", dating from 1816