The path a drug travels from a lab to your medicine cabinet is usually long, and every drug takes a unique route. Often, a drug is developed to treat a specific disease. An important use of a drug may also be discovered by accident.
For example, Retrovir (zidovudine, also known as AZT) was first studied as an anti-cancer drug in the 1960s with disappointing results. Twenty years later, researchers discovered the drug could treat AIDS, and Food and Drug Administration approved the drug, manufactured by GlaxoSmithKline, for that purpose in 1987.