The process in which a drug is combined with a variety of substances to obtain the final medicinal product. This process usually selects for many characteristics including chemical compatibility, pH, Solubility, and any other characteristics that will allow for a stable formulation with high drug activity.