The term was used from the period of the Roman Empire until the twentieth century, but has now been generally replaced in medical education contexts by the term pharmacology.
The earliest Chinese manual on materia medica, the Shennong Bencao Jing (Shennong Emperor's Classic of Materia Medica), dates back to the 1st century AD. It lists some 365 medicines of which 252 of them are herbs. It was compiled during the Han dynasty and was attributed to the mythical Shennong. Earlier literature included lists of prescriptions for specific ailments, exemplified by a manuscript Recipes for 52 Ailments, found in the Mawangdui tomb, sealed in 168 BC. Succeeding generations augmented on the Shennong Bencao Jing, as in the Yaoxing Lun (Treatise on the Nature of Medicinal Herbs), a 7th century Tang Dynasty treatise on herbal medicine.
Later in the medieval Islamic world, Muslim botanists and Muslim physicians significantly expanded on the earlier knowledge of materia medica. For example, al-Dinawari described more than 637 plant drugs in the 9th century, Ibn al-'Awwam described 585 microbiological cultures (55 of which concern fruit trees) in the 12th century, and Ibn al-Baitar described more than 1,400 different plants, foods and drugs, over 300 of which were his own original discoveries, in the 13th century. The experimental scientific method was introduced into the field of materia medica in the 13th century by the Andalusian-Arab botanist Abu al-Abbas al-Nabati, the teacher of Ibn al-Baitar. Al-Nabati introduced empirical techniques in the testing, description and identification of numerous materia medica, and he separated unverified reports from those supported by actual tests and observations. This allowed the study of materia medica to evolve into the science of pharmacology.
Avicenna's The Canon of Medicine (1025) is considered the first pharmacopoeia, and lists 800 tested drugs, plants and minerals. This was followed by other pharmacopoeia books written by Abu-Rayhan Biruni in the 11th century, Ibn Zuhr (Avenzoar) in the 12th century (and printed in 1491), and Ibn Baytar in the 14th century. The origins of clinical pharmacology also date back to the Middle Ages in Avicenna's The Canon of Medicine, Peter of Spain's Commentary on Isaac, and John of St Amand's Commentary on the Antedotary of Nicholas. In particular, the Canon introduced clinical trials, randomized controlled trials, and efficacy tests.
During the Middle Ages and the modern era, the body of knowledge termed materia medica was transformed by the methods and knowledge of medicinal chemistry into the modern scientific discipline of pharmacology.