J.K. Rowling wrote much of Harry Potter and the Philosopher’s Stone in Edinburgh while living as a single mother.
After moving to Scotland, Rowling raised her daughter Jessica and worked on the manuscript in cafés as well as at home. Edinburgh became strongly associated with the early development of Harry Potter, although the idea for the character and some early writing began before she settled there.
The cafés most often linked with the writing story include Nicolson’s Café and The Elephant House. Reports and later public discussion sometimes simplify the history by suggesting that the entire first book was written in one café. In reality, Rowling wrote in multiple places and over an extended period.
The city also influenced the series’ public identity through literary tours, landmarks, and celebrations. Edinburgh is therefore a documented part of the novel’s writing history, not the fictional location of Hogwarts itself. Hogwarts is an invented school whose exact geographical position remains deliberately uncertain.