In the present study the mechanisms of solar photodegradation of H(2)-receptor antagonist ranitidine (RNTD) were studied in a well-defined system of a pilot plant scale Compound Parabolic Collector (CPC) reactor. Two types of heterogeneous photocatalytic experiments were performed: catalysed by titanium-dioxide (TiO(2)) semiconductor and by Fenton reagent (Fe(2+)/H(2)O(2)), each one with distilled water and synthetic wastewater effluent matrix. Complete disappearance of the parent compounds and discreet mineralization were attained in all experiments. Furthermore, kinetic parameters, main intermediate products, release of heteroatoms and formation of carboxylic acids are discussed. The main intermediate products of photocatalytic degradation of RNTD have been structurally elucidated by tandem mass spectrometry (MS(2)) experiments performed at quadrupole-time of flight (QqToF) mass analyzer coupled to ultra-performance liquid chromatograph (UPLC). RNTD displayed high reactivity towards OH radicals, although a product of conduction band electrons reduction was also present in the experiment with TiO(2). In the absence of standards, quantification of intermediates was not possible and only qualitative profiles of their evolution could be determined. The proposed TiO(2) and photo-Fenton degradation routes of RNTD are reported for the first time.