In the present research, the removal of pharmaceutical contaminants based on atenolol (AT) and propranolol (PR) using modified activated carbon (AC) in a liquid solution was studied. Two methods, adsorption and photodegradation, were used to eliminate AT and PR. First, AC was prepared from date stems and then modified via hydroxylation (AC-OH) and impregnated into titanium dioxide (AC-TiO2) separately. The removal of AT and PR was investigated in terms of experimental parameters, such as pH, concentration, temperature, and the effectiveness of the processes. The results show that the removal of AT and PR reached 92% for the adsorption method, while 94% was registered for the photodegradation process. Likewise, in optimal experimental conditions, the adsorption of AT and PR over AC-OH showed good stability and recyclability, achieving five cycles without a visible decrease in the removal capacity. The results obtained in this work suggest that the low-cost and environmentally friendly synthesis of AC-OH is suitable to be considered for wastewater treatment at the industrial scale. Interestingly, the above results open a potential pathway to determine whether adsorption or photodegradation is more suitable for eliminating wastewater-related pharmaceutical pollutants. Accordingly, the experimental results recommend adsorption as a promising, durable, eco-friendly wastewater treatment method.