Mesoporous palladium-doped TiO 2 with anatase phase and high surface area was successfully synthesized by using a green sol−gel method with an ionic liquid (IL; 1-butyl-3methylimidazolium ferric chloride), as a template. This IL could be recovered and reused by magnetic separation after synthesis. The synthesized mesoporous sample was characterized through FESEM, XPS, XRD, and N 2 adsorption−desorption methods. The photocatalytic activity of Pd-doped titania in ionic liquid (Pd/IL-TiO 2 ) for the degradation of NO x and CO was investigated. The results demonstrated that the ionic liquid ([BMIM]FeCl 4 ), in combination with Pd dopant, retarded the creation of nanocrystals, with a small grain size (9.1 nm) and, presumably, a larger surface area. With regard to the bare IL-TiO 2 sample, the optical band gap calculated for the Pd/IL-TiO 2 obtained was 2.68 eV in comparison to 2.77 eV. Pd/IL-TiO 2 presented much better NO x (88%) and CO (74%) photodegradation as compared to undoped IL-TiO 2 (59 and 56%) in the same residence time.