While Hogwarts itself is fictional, J.K. Rowling was inspired by several real locations in the UK. The castle-like architecture, grand staircases, and magical atmosphere were inspired by places like Durham Cathedral, Alnwick Castle, and various locations in Scotland.