When the Second Doctor arrived on the planet, he scared off most of the witches by claiming to be the "Wizard of Omega" and using gadgets from his utility belt to perform "magic tricks." However, the Grand Witch and two of her followers stayed behind, learned that the Doctor was not a wizard and captured him, taking him to their cave.
He was rescued by John and Gillian, but the Grand Witch used her magic to place an indestructible net over the Doctor's TARDIS. The travellers doubled back to the Witch's cave, discovered a spell that would destroy witches, and cast it on their enemies. (COMIC: The Witches)