An assessment of the concentrations of thirteen different therapeutic pharmaceutical compounds was conducted on water samples obtained from different wastewater treatment plants (WWTPs) using solid phase extraction and high-and ultra-high-performance liquid chromatography with mass spectrometry detection (HPLC-MS/MS and UHPLC-MS/MS), was carried out. The target compounds included ketoprofen and naproxen (anti-inflammatories), bezafibrate (lipid-regulating), carbamazepine (anticonvulsant), metamizole (analgesic), atenolol (β-blocker), paraxanthine (stimulant), fluoxetine (antidepressant), and levofloxacin, norfloxacin, ciprofloxacin, enrofloxacin and sarafloxacin (fluoroquinolone antibiotics). The relative standard deviations obtained in method were below 11%, while the detection and quantification limits were in the range of 0.3 -97.4 ng·L -1 and 1.1 -324.7 ng·L -1 , respectively. The water samples were collected from two different WWTPs located on the island of Gran Canaria in Spain over a period of one year. The first WWTP (denoted as WWTP1) used conventional activated sludge for the treatment of wastewater, while the other plant (WWTP2) employed a membrane bioreactor system for wastewater treatment. Most of the pharmaceutical compounds detected in this study during the sampling periods were found to have concentrations ranging between 0.02 and 34.81 μg·L -1 .