An SPE coupled with a sample UV/vis spectrophotometric method was established in this study which offers a fast and cost-effective alternative analytical technique to detect ibuprofen and ciprofloxacin in model wastewater with the detection limit of 10 micro/L. The mean recoveries of this method were 101.0+-9.8% for ibuprofen and 99.4 +- 11.8% for ciprofloxacin, respectively. it is an alternative technique to LC-MS or GC-MS used for measuring pharmaceutical coompounds.