Thyme (Thymus vulgaris) is an herb with a distinct smell. The flowers, leaves, and oil are commonly used to flavor foods and are also used as medicine. Thyme contains chemicals that might help bacterial and fungal infections. It also might help relieve coughing and have antioxidant effects.