In Terraria, the Wizard initially appears as the Bound Wizard in the cavern layer or below, after the Wall of Flesh has been defeated. To free him, you simply need to interact with him. Once freed, he will respawn as long as a vacant house is available, even if he is killed. He is a Hardmode NPC vendor who sells magic-related items and can be found in nearly any open area underground.