What part of the licorice plant gives the candy its distinctive flavor?

What part of the licorice plant gives the candy its distinctive flavor?