The human gut microbiome is a complex ecosystem that can mediate the interaction of the human host with their environment. The interaction between gut microbes and commonly used non-antibiotic drugs is complex and bidirectional: gut microbiome composition can be influenced by drugs, but, vice versa, the gut microbiome can also influence an individual's response to a drug by enzymatically transforming the drug's structure and altering its bioavailability, bioactivity or toxicity (pharmacomicrobiomics). The gut microbiome can also indirectly impact an individual's response to immunotherapy in cancer treatment. In this review we discuss the bidirectional interactions between microbes and drugs, describe the changes in gut microbiota induced by commonly used non-antibiotic drugs, and their potential clinical consequences and summarise how the microbiome impacts drug effectiveness and its role in immunotherapy. Understanding how the microbiome metabolises drugs and reduces treatment efficacy will unlock the possibility of modulating the gut microbiome to improve treatment.