JK Rowling has said that writing the end of the last ever Harry Potter book left her in tears.
She said in a TV interview: "Actually finishing it was the most remarkable feeling I've ever had."
JK said writing the end of Harry Potter and the Deathly Hallows left her "devastated", although she added she is relieved the series has now finished.
JK also said the last word of the book has changed, and is no longer scar, although it is still near the end.
The final book is out on 21 July
The children's author also revealed where the ideas for some of her characters came from, saying Hermione was a little bit like JK.
She added that she was "quite swotty" as a child.
But Harry was "totally imaginary", the writer insisted.
Harry Potter and the Deathly Hallows goes on sale at midnight on 21 July.