A process for the removal of pharmaceutical compounds present in wastewater by means of using powdered activated carbon in a sequential bioreactor coupled to a chamber containing ultrafiltration membranes comprising the following steps: a) Collecting wastewater which is characterized by the presence of organic matter in the range of 500-2000 mg COD/L, ammonia in the range of 10-100 mg N-NH 4 /L and phosphorus in the range of 1-10 mg P-PO 4 /L, as well as of pharmaceutical compounds in trace concentrations: below 100 μg/L. b) Biological treatment of wastewater in a sequential batch reactor receiving a direct feeding of powdered activated carbon for the purpose of maintaining a constant concentration in the range of 0.5-2 g PAC/L that will be achieved by means of regulating the purge flow rate and maitaining a solid retention time of 30-120 days where the operation of the sequential batch reactor involves monitoring by means of a timer with a 6-hour controlled program cycle comprising the following phases: 3-10% partial filling; 20-30% under anoxic reaction conditions,; 60-70% under aerobic reaction conditions; and 3-10% settling and partial draining,. c) Treatment of the effluent generated after the partial draining of the sequential batch reactor in a continuous chamber having immersed therein an ultrafiltration membrane, which has a pore size of 0.04-0.4 μm and operates following a continuous routine alternating suction and relaxation periods taking up 80-90% and 10-20% of the operating time of the membrane, respectively, and a continuous aeration from the bottom, in order to minimize membrane fouling, in which two streams are produced: i) a permeate generated by the membrane constituting the final stream of the process, ii) a stream containing the reject accumulated in this chamber, a portion of which is recirculated by means of a pump into the sequential batch reactor during the aeration phase and the other portion constitutes the purge of the process. a) Collecting wastewater which is characterized by the presence of organic matter in the range of 500-2000 mg COD/L, ammonia in the range of 10-100 mg N-NH 4 /L and phosphorus in the range of 1-10 mg P-PO 4 /L, as well as of pharmaceutical compounds in trace concentrations: below 100 μg/L. b) Biological treatment of wastewater in a sequential batch reactor receiving a direct feeding of powdered activated carbon for the purpose of maintaining a constant concentration in the range of 0.5-2 g PAC/L that will be achieved by means of regulating the purge flow rate and maitaining a solid retention time of 30-120 days where the operation of the sequential batch reactor involves monitoring by means of a timer with a 6-hour controlled program cycle comprising the following phases: 3-10% partial filling; 20-30% under anoxic reaction conditions,; 60-70% under aerobic reaction conditions; and 3-10% settling and partial draining,. c) Treatment of the effluent generated after the partial draining of the sequential batch reactor in a continuous chamber having immersed therein an ultrafiltration membrane, which has a pore size of 0.04-0.4 μm and operates following a continuous routine alternating suction and relaxation periods taking up 80-90% and 10-20% of the operating time of the membrane, respectively, and a continuous aeration from the bottom, in order to minimize membrane fouling, in which two streams are produced: i) a permeate generated by the membrane constituting the final stream of the process, ii) a stream containing the reject accumulated in this chamber, a portion of which is recirculated by means of a pump into the sequential batch reactor during the aeration phase and the other portion constitutes the purge of the process.