anise extract is obtained from both the leaves and the seeds of the spice known as star anise. it has a strong, slightly sweet licorice flavor due to the presence of an aromatic compound known as anethole, which is also found in fennel, tarragon and licorice itself.