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

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