Fennel is a perennial, pleasant-smelling herb with yellow flowers. It is native to the Mediterranean, but is now found throughout the world. Dried fennel seeds are often used in cooking as an anise-flavored spice. ... In foods and beverages, fennel oil and fennel seed are used as flavoring agents.