Drugs are prescribed by a doctor for a number of reasons. These include preventing disease (antibiotics to cure an infection for example), relieving pain from injury or illness, or managing medical and psychological conditions that cannot be cured (anti-anxiety medications or antidepressants for example).