Thyme is an herb. The flowers, leaves, and oil are used as medicine. Thyme is sometimes used in combination with other herbs. Thyme is used for swelling (inflammation) of the main airways in the lung (bronchitis), cough, patchy hair loss (alopecia areata), stomach problems, and many other conditions.