Miconazole, the active ingredient in Daktarin, treats oral thrush by killing the candida fungus which causes the infection, easing symptoms such as redness, soreness, and discomfort in the mouth.