Anise (Pimpinella anisum) and basil (Ocimum basilicum) are not close botanical relatives, but they share a genuine relationship on three levels: both are aromatic herbs used in cooking, both belong to the same large plant family (Apiaceae and Lamiaceae respectively are different families, so this needs correcting—see below), and their flavors are sometimes deliberately paired or confused with one another. The most useful answer is to separate what is real from what is often assumed.

A quick correction of the framing: anise is in the carrot family (Apiaceae), while basil is in the mint family (Lamiaceae). They are not in the same family. What they do share is a place in the broader world of culinary herbs and a compound called anethole—though only anise (and its relatives) is defined by it. Basil's relationship to anise is therefore better described as a flavor association and a occasional confusion than a botanical kinship.

The botanical relationship: distant, not close

Anise and basil sit in different orders within the dicots. Anise belongs to Apiaceae, the family that also includes fennel, caraway, dill, parsley, cilantro, and celery. Basil belongs to Lamiaceae, the mint family, alongside mint, oregano, rosemary, sage, and thyme. Botanically, basil is far more closely related to mint than to anise.

This matters because plant family predicts a lot: flavor compound profiles, growing conditions, and how the plants are used. Apiaceae herbs tend to be seed- and root-forward, with strong volatile oils concentrated in seeds and stems. Lamiaceae herbs tend to be leaf-forward, with aromatic oils in glandular hairs on the leaves. Anise is grown chiefly for its seeds; basil is grown chiefly for its leaves. That single difference explains much of how they behave in a kitchen.

The flavor relationship: anethole versus linalool and estragole

The real connective tissue is chemistry, and it is partial.

Anise's signature aroma comes from anethole, a compound that gives black licorice, fennel, and star anise their characteristic sweetness. Anise seeds are intensely anethole-forward.

Basil's aroma is more complex and varies by variety. Sweet basil (Ocimum basilicum) is dominated by linalool (floral, slightly citrusy) and estragole (also called methyl chavicol; sweet, anise-like, slightly tarragon-ish). Estragole is the reason some people describe basil as having a faint licorice note. But basil is not an anise substitute, and anise is not a basil substitute. The overlap is a whisper, not a match.

A useful distinction: estragole and anethole are different compounds with different structures, even though both can read as "anise-like" to the nose. Basil's estragole is a minor-to-moderate component depending on variety; anise's anethole is its defining feature. This is why a Thai basil or a licorice basil can taste more anise-adjacent than a Genovese basil, and why "basil tastes like anise" is an overstatement that depends heavily on the cultivar.

Some basil varieties are explicitly bred or named for anise-like character—licorice basil and some Thai basils lean in that direction—but that is a variety-level trait, not a species-level one.

The culinary relationship: pairing versus substitution

In cooking, anise and basil are more often paired by design than mistaken for each other.

Paired: Anise seed appears in some tomato sauces, in pickling brines, and in Mediterranean and Middle Eastern dishes; basil is a classic tomato herb. The two can coexist in a braise or a spiced tomato dish, where anise's sweetness rounds out basil's freshness. Paired in spirit, not plate: Both are used to cut richness—anise in fatty meats and sausages, basil in oily pasta and caprese—but they do it differently, one through sweetness and one through floral-green freshness. Not substitutes: Swapping basil for anise in a pesto would be a disaster; swapping anise for basil in a licorice-forward dish would remove the point. The relationship is complementary, not interchangeable.

A second culinary connection is regional overlap. Anise is common in Mediterranean, Middle Eastern, and South Asian cooking; basil is common in Mediterranean, Southeast Asian, and Italian cooking. Their paths cross in the eastern Mediterranean and in some South Asian and Southeast Asian cuisines, but they are rarely the defining pair of any single tradition.

The confusion relationship: why people ask

People ask whether anise and basil are related because basil is often described as having "anise-like" or "licorice" notes. That description is real but loose. It comes from estragole, and it leads to a chain of associations: basil → licorice → anise → star anise. Each link is a flavor analogy, not a botanical or taxonomic one.

There is also a naming trap. "Anise basil" and "licorice basil" are basil cultivars, not a cross between anise and basil. "Anise hyssop" (Agastache foeniculum) is a third plant entirely—a mint-family herb with an anise scent—and it is neither anise nor basil. These names create the impression of a relationship that is really a shared aroma vocabulary.

A counterexample helps: fennel and anise are genuinely close relatives (both Apiaceae) and are far more interchangeable than anise and basil. Basil and mint are genuinely close relatives and are more interchangeable than basil and anise. The anise–basil link is the weakest of these pairings.

Growth and garden relationship: different needs

If the question is about growing them together, the answer is that they can be grown in the same garden but have different requirements. Anise prefers full sun, well-drained soil, and a long warm season; it is grown from seed and bolts readily. Basil prefers warmth, consistent moisture, and rich soil, and is typically grown as an annual in temperate climates. They are not companion-planting partners in any established sense; claims about "companion planting" benefits are generally not well supported by controlled evidence, so treat such claims cautiously.

Language note: "relationship" is doing ambiguous work

The question "do anise and basil have a relationship" can mean four different things, and the answer differs for each:

1: Botanical/taxonomic: No close relationship; different families. 2: Chemical/flavor: Partial overlap via anise-like notes in basil (estragole), but not the same compound profile. 3: Culinary: Complementary in some dishes, not substitutes. 4: Naming: Confused by cultivar names like "anise basil," which are not hybrids.

The most common source of confusion is treating a flavor analogy as a family tree. Basil's faint licorice note is real, but it does not make basil an anise relative, any more than a cherry tomato's sweetness makes it a cherry.

What is and isn't answerable

What is answerable from stable knowledge: their plant families, their characteristic aroma compounds, their culinary roles, and the naming confusions. What is not answerable without a specific context: whether a particular recipe intends them as substitutes, or whether a particular basil cultivar has a strong anise note—those depend on the variety and the dish, which the question does not specify.

The short version: anise and basil have a real but modest relationship—culinary and aromatic, not botanical. They are distant plant relatives, occasional flavor cousins, and frequent sources of loose language.