thumb|upright=1.3|The bark of [[willow trees contains salicylic acid, the active metabolite of aspirin, and has been used for millennia to relieve pain and reduce fever.]]

Medicinal plants, also called medicinal herbs, have been discovered and used in traditional medicine practices since prehistoric times. Plants synthesize hundreds of chemical compounds for various functions, including defense and protection against insects, fungi, diseases, against parasites and herbivorous mammals.

The earliest historical records of herbs are found from the Sumerian civilization, where hundreds of medicinal plants including opium are listed on clay tablets, . The Ebers Papyrus from ancient Egypt, , describes over 850 plant medicines. The Greek physician Dioscorides, who worked in the Roman army, documented over 1000 recipes for medicines using over 600 medicinal plants in , ; this formed the basis of pharmacopoeias for some 1500 years. Drug research sometimes makes use of ethnobotany to search for pharmacologically active substances, and this approach has yielded hundreds of useful compounds. These include the common drugs aspirin, digoxin, quinine, and opium. The compounds found in plants are diverse, with most in four biochemical classes: alkaloids, glycosides, polyphenols, and terpenes. Few of these are scientifically confirmed as medicines or used in conventional medicine.

Medicinal plants are widely used as folk medicine in non-industrialized societies, mainly because they are readily available and cheaper than modern medicines. In many countries, there is little regulation of traditional medicine, but the World Health Organization coordinates a network to encourage safe and rational use. The botanical herbal market has been criticized for being poorly regulated and containing placebo and pseudoscience products with no scientific research to support their medical claims. Medicinal plants face both general threats, such as climate change and habitat destruction, and the specific threat of over-collection to meet market demand. and especially in meat dishes that spoil more readily. Angiosperms (flowering plants) were the original source of most plant medicines. Human settlements are often surrounded by weeds used as herbal medicines, such as nettle, dandelion and chickweed. Humans were not alone in using herbs: some animals, such as non-human primates, monarch butterflies and sheep ingest plants when they are ill.

Samples from prehistoric burial sites indicate that Paleolithic peoples consumed plants. For instance, a 60,000-year-old Neanderthal burial site, "Shanidar IV", in northern Iraq yielded pollen from eight plant species. At Taforalt cave, Morocco, 15,000-year-old remains of ephedra were found inside a tomb, indicating its possible role in funeral rites. A mushroom found in the personal effects of Ötzi the Iceman, whose body was frozen in the Ötztal Alps for more than 5,000 years, may have been used against whipworm.

Ancient times

thumb|upright|The [[Ebers Papyrus () from Ancient Egypt describes the use of hundreds of plant medicines.

From ancient times to the present, Ayurvedic medicine as documented in the Atharva Veda, the Rig Veda and the Sushruta Samhita has used hundreds of herbs and spices, such as turmeric, which contains curcumin. The Chinese pharmacopoeia, the Shennong Ben Cao Jing records plant medicines such as chaulmoogra for leprosy, ephedra, and hemp. This was expanded in the Tang dynasty Yaoxing Lun. In the fourth century BC, Aristotle's pupil Theophrastus wrote the first systematic botany text, Historia plantarum.

In around 60 AD, the Greek physician Dioscorides, working for the Roman army, documented over 1000 recipes for medicines using over 600 medicinal plants in . The book remained the authoritative reference on herbalism for over 1500 years, into the seventeenth century.

Middle Ages

thumb|upright|Illustration of a 1632 copy of [[Avicenna's 1025 The Canon of Medicine, showing a physician talking to a female patient in a garden, while servants prepare medicines.]]<!--image for 'Middle Ages'-->

In the Early Middle Ages, Benedictine monasteries preserved medical knowledge in Europe, translating and copying classical texts and maintaining herb gardens. Hildegard of Bingen wrote Causae et Curae ("Causes and Cures") on medicine.

In the Islamic Golden Age, scholars translated many classical Greek texts including Dioscorides into Arabic, adding their own commentaries.

Herbalism flourished in the Islamic world, particularly in Baghdad and in Al-Andalus. Among many works on medicinal plants, Abulcasis (936–1013) of Cordoba wrote The Book of Simples, and Ibn al-Baitar (1197–1248) recorded hundreds of medicinal herbs such as Aconitum, nux vomica, and tamarind in his Corpus of Simples. Avicenna included many plants in his 1025 The Canon of Medicine. Abu-Rayhan Biruni, Ibn Zuhr, Peter of Spain, and John of St Amand wrote further pharmacopoeias.

Early Modern

[[File:The Grete Herball, Title Page, 1526.jpg|thumb|upright|An early illustrated book of medicinal plants,

Many new plant medicines arrived in Europe as products of Early Modern exploration and the resulting Columbian Exchange, in which livestock, crops and technologies were transferred between the Old World and the Americas in the 15th and 16th centuries. Medicinal herbs arriving in the Americas included garlic, ginger, and turmeric; coffee, tobacco and coca travelled in the other direction.

In Mexico, the sixteenth century Badianus Manuscript described medicinal plants available in Central America.<!---->

19th and 20th centuries

The place of plants in medicine was radically altered in the 19th century by the application of chemical analysis. Alkaloids were isolated from a succession of medicinal plants, starting with morphine from the poppy in 1806, and soon followed by ipecacuanha and strychnos in 1817, quinine from the cinchona tree, and then many others. As chemistry progressed, additional classes of potentially active substances were discovered in plants. Commercial extraction of purified alkaloids including morphine began at Merck in 1826. Synthesis of a substance first discovered in a medicinal plant began with salicylic acid in 1853. Around the end of the 19th century, the mood of pharmacy turned against medicinal plants, as enzymes often modified the active ingredients when whole plants were dried, and alkaloids and glycosides purified from plant material started to be preferred. Drug discovery from plants continued to be important through the 20th century and into the 21st, with important anti-cancer drugs from yew and Madagascar periwinkle.

Context

Medicinal plants are used with the intention of maintaining health, to be administered for a specific condition, or both, whether in modern medicine or in traditional medicine. The Food and Agriculture Organization estimated in 2002 that over 50,000 medicinal plants are used across the world. The Royal Botanic Gardens, Kew more conservatively estimated in 2016 that 17,810 plant species have a medicinal use, out of some 30,000 plants for which a use of any kind is documented.

In modern medicine, around a quarter