Whole garlic cloves, crushed garlic, garlic oil or garlic powder can be used for treating toenail fungus. If your fungus is in the initial stage, placing garlic cloves in the toe area of your socks at night before wearing them helps in curbing the infection.