He had lived on an island near Venice during a cholera outbreak in 1905, which initiated the setting for the story. Then, during a trip to Venice in 1911, he read an obituary for composer Gustav Mahler, leading to the creation of his fictional writer, Gustav von Aschenbach.