Magic Shop

The magical shop is a building inside the fortress. You need to be at least level 16 to enter. Then, you can get the spellbook for 64 crystals, and then you will be able to activate various spells with more crystals. This building is right next to the blacksmith shop.