Hogwarts is the school of magic where the Harry Potter series occurs. It is the main setting of the first six books of the series, while the seventh book, Harry Potter and the Deathly Hallows, is mostly set away from Hogwarts. The school and surrounding grounds contain many strange places and are home to a number of fantastic creatures, such as centaurs and ghosts.
Students at Hogwarts must complete a seven-year program before they graduate though they can already leave the school after the fifth year if they pass a special exam which is obligatory. In the seventh year there is another exam. The core curriculum includes such courses as Herbology, Tranfiguration, Charms, Defense against the Dark Arts, Potions, and History of Magic. Optional courses include Divination and Care of Magical Creatures.