A drug-food interaction happens when the food you eat affects the ingredients in a medicine you are taking, so the medicine cannot work the way it should. It happens with both prescription and over-the-counter medicines.
Not all but many medicines can be affected by what you eat and when you eat your food, such as taking some medicines at the same time that you eat may interfere with the way your stomach and intestines absorb the medicine. Food may delay or lower the absorption of the drug, which is why some medicines should be taken 1 hour before eating or 2 hours after eating.
Some medicines are easy to digest when taken with food. However, it is always advisable to ask your doctor whether it's fine to take medicine with a snack or a meal or if it should be taken on an empty stomach.
Here a few pointers that could prove helpful:
Never take medicines with alcohol.