There are many reasons your dentist prescribes medication. While some drugs are designed to combat oral diseases, others are used to prevent surgical infections such as tooth extraction and gum surgery. Some medicines are used before dental treatment. These drugs are used to help fight infections and to control existing conditions such as heart murmur and valve problems. Your dentist will discuss with you what medicine you take, when you take the medicine, and why.