Vicks Vaporub contains the ingredients menthol, camphor and eucalyptus oil which contain antibacterial properties that help kill the infection causing toenail fungus.
That's what basically causes the toenail fungus to be killed off when using Vicks Vaporub.