Herein, the influences of rhamnolipid (a typical biosurfactant) on oxytetracycline (OTC) transport in the porous media and their variations with the surface heterogeneities of the media (uncoated sand, goethite (Goe)-, and humic acid (HA)-coated sands) were explored. Compared to uncoated sand, goethite and HA coatings suppressed OTC mobility by increasing deposition sites. Interestingly, rhamnolipid-affected OTC transport strongly depended on the chemical heterogeneities of aquifers and biosurfactant concentrations. Concretely, adding rhamnolipid (1–3 mg/L) inhibited OTC mobility through sand columns because of the bridging effect of biosurfactant between sand and OTC. Unexpectedly, rhamnolipid of 10 mg/L did not further improve the inhibition of OTC transport owing to the fact that the deposition capacity of rhamnolipid reached its maximum. OTC mobility in Goe-coated sand columns was inhibited by 1 mg/L rhamnolipid. However, the inhibitory effect decreased with the increasing rhamnolipid concentration (3 mg/L) and exhibited a promoted effect at 10 mg/L rhamnolipid. This surprising observation was that the increased rhamnolipid molecules gradually occupied the favorable deposition sites (i.e., the positively charged sites). In comparison, rhamnolipid facilitated OTC transport in the HA-coated sand column. The promotion effects positively correlated with rhamnolipid concentrations because of the high electrostatic repulsion and deposition site competition induced by the deposited rhamnolipid. Another interesting phenomenon was that rhamnolipid's enhanced or inhibitory effects on OTC transport declined with the increasing solution pH because of the decreased rhamnolipid deposition on porous media surfaces. These findings benefit our understanding of the environmental behaviors of antibiotics in complex soil-water systems containing biosurfactants.