How do you remove medicine from herbs?

Distillation of herbs will give you essential oils that are used in medicine.