anise is an annual and fennel is a perennial. they both are used for their licorice flavor, which comes from the essential oil called anethole found in their seeds.