star anise contains a substance called anethole, which is responsible for the licorice flavor of star anise fruits, anise seeds, and fennel seeds.