That flavor that's distinct in root beer is sassafras! Originally, root beer was flavored with safrole oil, which is derived from sassafras. Because of the ban on safrole, all commercially brewed root beer is flavored with artificial sassafras.