Some drugs can be more or less fat soluble, or water soluble. Therefore, if you consume a high fat meal, more of the drug will be absorbed because it will dissolve in the fat. Same goes for a water soluble drug. Clearly, if the situations were reversed, the opposite will occur.
Another way food can affect the absorption is through affecting gastric emptying. For example, a high fat and/or protein meal leads to the secretion of a hormone known as cholecystokinin (CCK). CCK inhibits gastric emptying, meaning the drug remains in the stomach for an extended period of time.
Latest Answers