"Vaal is Vaal. He is – everything."
Vaal was ultimately destroyed by Kirk and the crew of the Enterprise when it killed several crew members and was on the verge of destroying the Enterprise and all her crew by pulling them into the planet's atmosphere. This action by Kirk may have been in direct violation of the Prime Directive, but Kirk felt justified that the people on the planet needed to be freed from their false god in order to achieve their full potential. (TOS: "The Apple")