It contains the alkaloid berberine, which has a number of traditional and contemporary uses for dyeing and medicine.
The compound berberine, found within it, is used in dyeing and medicine, both historically and presently.