The primary function of the MDR1 gene is to encode P-glycoprotein, which is part of the ATP-binding cassette (ABC) transporters family. This protein acts as a pump, actively transporting a wide range of substrates, including drugs and environmental toxins, out of cells. It is highly expressed in tissues that serve as barriers, such as the intestinal epithelium, blood-brain barrier, liver, and kidney.