That hat is the pointed witch's hat that ends up becoming the iconic symbol of the Wicked Witch of the West, and one that the Wizard of Oz uses to turn Elphaba into a villain to preserve his power.