Edinburgh is the Scottish city associated with J.K. Rowling writing parts of the first Harry Potter novel.
After moving to Scotland, Rowling wrote in several places, including cafés in Edinburgh. The Elephant House café has become especially associated with the story because Rowling wrote there during the development of Harry Potter and the Philosopher’s Stone. Other parts of the book were written at home and in different locations.
The café’s connection is often simplified into the claim that Rowling wrote the entire first novel there. That is inaccurate: the book was produced over a long period and in multiple settings. Rowling also completed substantial work elsewhere, including in Portugal and at home in Edinburgh.
Edinburgh’s architecture and atmosphere are frequently linked by fans with the visual feel of the wizarding world. The city later became home to Rowling, and locations connected with her career became popular destinations for readers. The association is biographical and cultural rather than an official claim that one café directly inspired every Hogwarts detail.