Rowling completed the book while staying at the Balmoral Hotel in Edinburgh in January 2007, and left a signed statement on a marble bust of Hermes in her room which read: “J. K. Rowling finished writing Harry Potter and the Deathly Hallows in this room (652) on 11 January 2007”. In a statement on her website, she said, “I’ve never felt such a mixture of extreme emotions in my life, never dreamed I could feel simultaneously heartbroken and euphoric.” She compared her mixed feelings to those expressed by Charles Dickens in the preface of the 1850 edition of David
Copperfield, “a two-years’ imaginative task”. “To which,” she added, “I can only sigh, try seventeen years, Charles”. She ended her message by saying “Deathly Hallows is my favourite, and that is the most wonderful way to finish the series”. When asked before publication about the forthcoming book, Rowling stated that she could not
change the ending even if she wanted. “These books have been plotted for such a long time, and for six books now, that they’re all leading a certain direction. So, I really can’t”. She also commented that the final volume related closely to the previous book in the series, Harry Potter and the Half-Blood Prince, “almost as though they are two halves of the same novel”. She has said that the last chapter of the book was written “in something like 1990”, as part of her earliest work on the series. Rowling also revealed she originally wrote the last words to be “something like: ‘Only those who he loved could see his lightning scar'”. Rowling changed this because she did not want people to think Voldemort would rise again and to say that Harry’s mission was over.
In a 2006 interview, J. K. Rowling said that the main theme of the series is Harry dealing with death, which was influenced by her mother’s death in 1990, from multiple sclerosis.Lev Grossman of Time stated that the main theme of the series was the overwhelming importance of continuing to love in the face of death