It is a school of magic for witches and wizards between the ages of eleven and seventeen living in the United Kingdom and the Republic of Ireland . It is a fictional boarding school of magic for witches and wizards between the ages of eleven and seventeen .