Star anise is just one of the many spices used in Moroccan cooking. The licorice flavor of star anise compliments other strong Moroccan spices. For the most part, you'll find star anise featured in Moroccan desserts, especially cookies.