In recent years, the concern derived from the presence of emerging contaminants in the environment and the possible effects on the One Health trilogy has increased. This study determined the concentration of pharmaceutical contaminants of emerging concern and their relationship with the extracellular enzymatic activity of microbial communities from two rivers in western Cuba. Two sampling stations were analyzed; one in the Almendares River (urban) and the other in the San Juan River (rural), taking into account the pollution sources that arrive at these stations and previous physicochemical characterizations. Extracellular protease, acid phosphatase, alkaline phosphatase, lipase, and catalase activities in water and sediments were determined and correlated with contaminants of emerging concern determined by liquid chromatography with mass spectrometry. This study evidenced the presence of different pharmaceutical contaminants found in the categories of antihypertensives, stimulants, anti-inflammatories, and antibiotics in both rivers. Concentrations of contaminants of emerging concern were greater in the Almendares River compared to the San Juan River. In addition, through the canonical redundancy analysis, the influence of these contaminants on the extracellular enzymatic activities of microbial communities was documented, where in most cases they inhibit protease, phosphatase, and lipase activities and enhance catalase activity in response to oxidative stress. The present investigation constitutes the first report in Cuba of the presence of pharmaceutical contaminants of emerging concern and one of the few works that exist in the Latin American region.